mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 18:08:42 -05:00
Remove two remaining "u" chars
This commit is contained in:
parent
3a19f3cef8
commit
23c3243209
1 changed files with 2 additions and 2 deletions
|
|
@ -429,8 +429,8 @@ class Image:
|
||||||
self.compressing = True
|
self.compressing = True
|
||||||
exe = ".exe" if (sys.platform == "win32") else ""
|
exe = ".exe" if (sys.platform == "win32") else ""
|
||||||
runString = {
|
runString = {
|
||||||
"jpeg": u"jpegoptim" + exe + " -f --strip-all '%(file)s'",
|
"jpeg": "jpegoptim" + exe + " -f --strip-all '%(file)s'",
|
||||||
"png": u"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'"
|
"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'"
|
||||||
}
|
}
|
||||||
# Create a backup file
|
# Create a backup file
|
||||||
copy(self.fullpath, self.fullpath + '~')
|
copy(self.fullpath, self.fullpath + '~')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue