optimize news images
This commit is contained in:
parent
20a96e1e51
commit
df601e3234
|
|
@ -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