From ecfc4af6a3c9e4cbf969e768bfc6429e64f0489e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1lm=C3=A1n=20Tarnay?= Date: Tue, 30 Mar 2010 00:26:29 +0200 Subject: [PATCH] "and" relationship between the two png compressor commands --- src/trimage/trimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trimage/trimage.py b/src/trimage/trimage.py index 8bf9894..e09710f 100755 --- a/src/trimage/trimage.py +++ b/src/trimage/trimage.py @@ -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: