mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
Remove win32 bytes following d6118b5
This commit is contained in:
parent
9bdd44a4e4
commit
9d6edd3847
2 changed files with 4 additions and 6 deletions
|
|
@ -371,10 +371,9 @@ class Image:
|
|||
file)"
|
||||
self.reset()
|
||||
self.compressing = True
|
||||
exe = ".exe" if (sys.platform == "win32") else ""
|
||||
runString = {
|
||||
"jpeg": "jpegoptim" + exe + " -f --strip-all '%(file)s'",
|
||||
"png": "optipng" + exe + " -force -o7 '%(file)s'&&advpng" + exe + " -z4 '%(file)s' && pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time '%(file)s' '%(file)s.bak' && mv '%(file)s.bak' '%(file)s'"
|
||||
"jpeg": "jpegoptim -f --strip-all '%(file)s'",
|
||||
"png": "optipng -force -o7 '%(file)s'&&advpng -z4 '%(file)s' && pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time '%(file)s' '%(file)s.bak' && mv '%(file)s.bak' '%(file)s'"
|
||||
}
|
||||
# create a backup file
|
||||
backupfullpath = '/tmp/' + self.filename_w_ext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue