Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
alex 2020-01-20 14:20:54 +03:00
commit 5f4852d11e

View File

@ -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)