mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 10:08:40 -05:00
Merge branch 'master' of git@host.fluxility.com:optimg
This commit is contained in:
commit
abedbc5bdd
1 changed files with 2 additions and 2 deletions
|
|
@ -98,11 +98,11 @@ class StartQT4(QMainWindow):
|
||||||
oldfilesize = oldfile.size()
|
oldfilesize = oldfile.size()
|
||||||
oldfilesizestr = size(oldfilesize, system=alternative)
|
oldfilesizestr = size(oldfilesize, system=alternative)
|
||||||
|
|
||||||
if name.endsWith("jpg"):
|
if path.splitext(str(filename))[1].lower() in [".jpg", ".jpeg"]:
|
||||||
runstr = 'jpegoptim --strip-all -f "' + str(filename) + '"'
|
runstr = 'jpegoptim --strip-all -f "' + str(filename) + '"'
|
||||||
runfile = system(runstr)
|
runfile = system(runstr)
|
||||||
|
|
||||||
elif name.endsWith("png"):
|
elif path.splitext(str(filename))[1].lower() in [".png"]:
|
||||||
#runstr = ('optipng -force -o7 "' + str(filename)
|
#runstr = ('optipng -force -o7 "' + str(filename)
|
||||||
#+ '"; advpng -z4 "' + str(filename) + '"') ## don't do advpng yet
|
#+ '"; advpng -z4 "' + str(filename) + '"') ## don't do advpng yet
|
||||||
runstr = 'optipng -force -o7 "' + str(filename) + '"'
|
runstr = 'optipng -force -o7 "' + str(filename) + '"'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue