Thread: ImageOptimizer
View Single Post
Old 02-03-2016, 06:18 AM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
@roger64: The jpegtran version that you've installed is the fork that I mentioned that still uses the old syntax and will most likely not work.

I'd recommend the following workaround:

1. Install the Wine windows emulator, if you haven't already done so.
2. Change lines 83 and 85 in plugin.py as follows:

old version:

Code:
            exe_path = 'jpegtran'
                
        args = [exe_path]
new version:

Code:
            exe_path = os.path.join(SCRIPT_DIR,'win', 'jpegtran.exe')
                
        args = ['wine', exe_path]
Make sure not to mess with the indentation otherwise Python will display some cryptic error messages.
Doitsu is offline   Reply With Quote