mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -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()
|
||||
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) + '"'
|
||||
runfile = system(runstr)
|
||||
|
||||
elif name.endsWith("png"):
|
||||
elif path.splitext(str(filename))[1].lower() in [".png"]:
|
||||
#runstr = ('optipng -force -o7 "' + str(filename)
|
||||
#+ '"; advpng -z4 "' + str(filename) + '"') ## don't do advpng yet
|
||||
runstr = 'optipng -force -o7 "' + str(filename) + '"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue