mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
use the silent option for all command line apps
This commit is contained in:
parent
1e7874636e
commit
94e66e9972
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue