From 458d3e54ade0a9b7fddc55f448e6e350dc15808d Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 4 May 2016 09:56:49 +0200 Subject: [PATCH] [mod] blank line for lisibilit --- prosopopee/prosopopee.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 0da675d..6a2b254 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -133,10 +133,13 @@ class Image(object): "quality": "-quality %s" % options["quality"] if "quality" in options else "-define jpeg:preserve-settings", "resize": "-resize %s" % options["resize"] if options.get("resize", None) is not None else "" } + command = "gm convert {source} {auto-orient} {strip} {quality} {resize} {target}".format(**gm_switches) warning("Generation", source) + print(command) os.system(command) + CACHE.cache_picture(source, target, options) def copy(self): @@ -148,6 +151,7 @@ class Image(object): # return "" options = self.options.copy() + if not options["auto-orient"] and not options["strip"]: shutil.copyfile(source, target) print source, "->", target