mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
Don't print twice as many lines when resizing icons
This commit is contained in:
parent
d9d8448035
commit
1f2b95c218
@ -280,9 +280,9 @@ def resize_icon(iconpath, density):
|
|||||||
size = launcher_size(density)
|
size = launcher_size(density)
|
||||||
|
|
||||||
if any(length > size for length in im.size):
|
if any(length > size for length in im.size):
|
||||||
print iconpath, "is too large:", im.size
|
oldsize = im.size
|
||||||
im.thumbnail((size, size), Image.ANTIALIAS)
|
im.thumbnail((size, size), Image.ANTIALIAS)
|
||||||
print iconpath, "new size:", im.size
|
print iconpath, "was too large at", oldsize, "- new size is", im.size
|
||||||
im.save(iconpath, "PNG")
|
im.save(iconpath, "PNG")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user