chiark / gitweb /
Don't print twice as many lines when resizing icons
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 7 Jan 2014 15:25:29 +0000 (16:25 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 9 Jan 2014 15:23:49 +0000 (16:23 +0100)
fdroidserver/update.py

index 67088b6edfaf4f12e178220207812d9195f7598e..6ce6b2aa369d2092557013d9e9692b4d8266768c 100644 (file)
@@ -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: