optimize news images

This commit is contained in:
a.gorbunov 2020-01-20 10:42:16 +00:00
parent 20a96e1e51
commit df601e3234

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)