Merge branch 'bug/optimize-collection-images' into 'develop'
optimize news images See merge request gm/gm-backend!224
This commit is contained in:
commit
1140937346
|
|
@ -33,7 +33,7 @@ class Command(BaseCommand):
|
||||||
if not image.startswith('http'):
|
if not image.startswith('http'):
|
||||||
image = f'{SCHEMA_URI}://{SITE_DOMAIN_URI}{image}'
|
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:
|
try:
|
||||||
size, width, height = get_image_meta_by_url(image)
|
size, width, height = get_image_meta_by_url(image)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user