Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
5f4852d11e
|
|
@ -28,6 +28,7 @@ class Command(BaseCommand):
|
|||
|
||||
def optimize(self, text, max_size, max_quality):
|
||||
"""optimize news images"""
|
||||
if isinstance(text, str):
|
||||
for image in get_url_images_in_text(text):
|
||||
try:
|
||||
size, width, height = get_image_meta_by_url(image)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user