From 945714c225aada97be1c7a79f5327dd54aedc4ce Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 11 Dec 2015 09:51:11 +0100 Subject: [PATCH] [mod] debug infos --- prosopopee/prosopopee.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index a9902d1..93536ab 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -69,10 +69,12 @@ class TemplateFunctions(): if CACHE.thumbnail_needs_to_be_generated(source, target): command = "gm convert %s -resize %s %s" % (source, gm_geometry, target) - # print command + print command os.system(command) CACHE.cache_thumbnail(source, target) + else: + print "skiped %s since it's already generated (based on source unchanged size)" % target return thumbnail_name