mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
"and" relationship between the two png compressor commands
This commit is contained in:
parent
b0b0dd9244
commit
ecfc4af6a3
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ class Image:
|
|||
raise "Tried to compress invalid image (unsupported format or not file)"
|
||||
runString = {
|
||||
"jpeg": u"jpegoptim -f --strip-all '%(file)s'",
|
||||
"png" : u"optipng -force -o7 '%(file)s'; advpng -z4 '%(file)s'"}
|
||||
"png" : u"optipng -force -o7 '%(file)s'&&advpng -z4 '%(file)s'"}
|
||||
retcode = call(runString[self.filetype] % {"file": self.fullpath},
|
||||
shell = True, stdout=PIPE)
|
||||
if retcode == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue