mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Don't print twice as many lines when resizing icons
This commit is contained in:
parent
f82207ec60
commit
729f457f0b
1 changed files with 2 additions and 2 deletions
|
@ -280,9 +280,9 @@ def resize_icon(iconpath, density):
|
|||
size = launcher_size(density)
|
||||
|
||||
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)
|
||||
print iconpath, "new size:", im.size
|
||||
print iconpath, "was too large at", oldsize, "- new size is", im.size
|
||||
im.save(iconpath, "PNG")
|
||||
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue