chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f82207e
)
Don't print twice as many lines when resizing icons
author
Daniel Martí
<mvdan@mvdan.cc>
Tue, 7 Jan 2014 15:25:29 +0000
(16:25 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Tue, 7 Jan 2014 15:25:29 +0000
(16:25 +0100)
fdroidserver/update.py
patch
|
blob
|
history
diff --git
a/fdroidserver/update.py
b/fdroidserver/update.py
index 67088b6edfaf4f12e178220207812d9195f7598e..6ce6b2aa369d2092557013d9e9692b4d8266768c 100644
(file)
--- a/
fdroidserver/update.py
+++ b/
fdroidserver/update.py
@@
-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: