From 4927484ee11a276846486dad5a700d1d435f9f21 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 4 May 2016 09:56:38 +0200 Subject: [PATCH] [mod] pep8 --- prosopopee/prosopopee.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index b7f2853..0da675d 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -126,13 +126,13 @@ class Image(object): okgreen("Skipped", source + " is already generated") gm_switches = { - "source": source, - "target": target, - "auto-orient": "-auto-orient" if options["auto-orient"] else "", - "strip": "-strip" if options["strip"] else "", - "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 "" - } + "source": source, + "target": target, + "auto-orient": "-auto-orient" if options["auto-orient"] else "", + "strip": "-strip" if options["strip"] else "", + "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)