let pillow optimize

This commit is contained in:
codl 2017-08-11 15:55:50 +02:00
parent e8647d9201
commit 2510024e82
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ def task_gen_logo():
for width in widths:
height = im.height * width // im.width
new = im.resize((width,height), resample=Image.LANCZOS)
new.save('static/logotype-{}.png'.format(width))
im.save('static/logotype.png')
new.save('static/logotype-{}.png'.format(width), optimize=True)
im.save('static/logotype.png', optimize=True)
return {
'actions': [gen_logo],