Merge pull request #62 from 0x010C/patch-2

quoting the source and target path into gm command
This commit is contained in:
Laurent Peuch 2016-09-08 08:15:34 +02:00 committed by GitHub
commit d14710a706

View File

@ -143,7 +143,7 @@ class Image(object):
"progressive": "-interlace Line" if options.get("progressive", None) is True else "" "progressive": "-interlace Line" if options.get("progressive", None) is True else ""
} }
command = "gm convert {source} {auto-orient} {strip} {progressive} {quality} {resize} {target}".format(**gm_switches) command = "gm convert '{source}' {auto-orient} {strip} {progressive} {quality} {resize} '{target}'".format(**gm_switches)
warning("Generation", source) warning("Generation", source)
print(command) print(command)