From 1f2b95c218c20a322d92a7ab90cb0fdd4e236d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 7 Jan 2014 16:25:29 +0100 Subject: [PATCH] Don't print twice as many lines when resizing icons --- fdroidserver/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 67088b6e..6ce6b2aa 100644 --- 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: