From 94e66e9972107b5ad8bda1636a0dbc6dd5ca8145 Mon Sep 17 00:00:00 2001 From: Kilian Valkhof Date: Wed, 3 Feb 2010 13:42:52 +0100 Subject: [PATCH] use the silent option for all command line apps --- trimage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trimage.py b/trimage.py index 4341742..ef32948 100644 --- a/trimage.py +++ b/trimage.py @@ -124,13 +124,13 @@ class StartQT4(QMainWindow): #decide with tool to use if path.splitext(str(filename))[1].lower() in [".jpg", ".jpeg"]: - runstr = 'jpegoptim --strip-all -f "' + str(filename) + '"' + runstr = 'jpegoptim --strip-all -f -q"' + str(filename) + '"' runfile = system(runstr) elif path.splitext(str(filename))[1].lower() in [".png"]: # don't do advpng yet - runstr = ('optipng -force -o7 "' + str(filename) - + '"; advpng -z4 "' + str(filename) + '"') + runstr = ('optipng -q -force -o7 "' + str(filename) + + '"; advpng -z4 -q "' + str(filename) + '"') #runstr = 'optipng -force -o7 "' + str(filename) + '"' runfile = system(runstr)