Merge branch 'bug/optimize-collection-images' into 'develop'

optimize news images

See merge request gm/gm-backend!224
This commit is contained in:
Anton Gorbunov 2020-01-20 10:42:31 +00:00
commit 1140937346

View File

@ -33,7 +33,7 @@ class Command(BaseCommand):
if not image.startswith('http'):
image = f'{SCHEMA_URI}://{SITE_DOMAIN_URI}{image}'
self.stdout.write(self.style.NOTICE(f'{image}'))
self.stdout.write(self.style.SUCCESS(f'{image} {text}'))
try:
size, width, height = get_image_meta_by_url(image)