let pillow optimize
This commit is contained in:
parent
e8647d9201
commit
2510024e82
4
dodo.py
4
dodo.py
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue