[mod] blank line for lisibilit
This commit is contained in:
parent
4927484ee1
commit
458d3e54ad
@ -133,10 +133,13 @@ class Image(object):
|
|||||||
"quality": "-quality %s" % options["quality"] if "quality" in options else "-define jpeg:preserve-settings",
|
"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 ""
|
"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)
|
command = "gm convert {source} {auto-orient} {strip} {quality} {resize} {target}".format(**gm_switches)
|
||||||
warning("Generation", source)
|
warning("Generation", source)
|
||||||
|
|
||||||
print(command)
|
print(command)
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
||||||
CACHE.cache_picture(source, target, options)
|
CACHE.cache_picture(source, target, options)
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
@ -148,6 +151,7 @@ class Image(object):
|
|||||||
# return ""
|
# return ""
|
||||||
|
|
||||||
options = self.options.copy()
|
options = self.options.copy()
|
||||||
|
|
||||||
if not options["auto-orient"] and not options["strip"]:
|
if not options["auto-orient"] and not options["strip"]:
|
||||||
shutil.copyfile(source, target)
|
shutil.copyfile(source, target)
|
||||||
print source, "->", target
|
print source, "->", target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user