View Single Post
Old 11-26-2021, 11:02 AM   #2
bravosx
Zealot
bravosx began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Jun 2014
Location: Poland, Żory
Device: Prestigio PER3464B, Onyx Lynx, Lenovo S5000 i Tab4-8"
I installed the JPEGOptimizer and PNGOptimizer plugins and they didn't work properly.
I have received such reports:

- for the JPEGOptimizer

Status: failed
Lossless optimization: cover.jpeg ...
Original file size: 144.70KB
Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
self.exitcode = target_script.run(container)
File "C:\Users\xxxx\AppData\Local\sigil-ebook\sigil\plugins\JPEGOptimizer\plugin.py", line 119, in run
stdout, stderr, returncode = jo_wrapper(*args)
File "C:\Users\xxxx\AppData\Local\sigil-ebook\sigil\plugins\JPEGOptimizer\plugin.py", line 35, in jo_wrapper
return stdout.decode('utf-8'), stderr.decode('utf-8'), returncode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 14: invalid start byte
Error: 'utf-8' codec can't decode byte 0xb3 in position 14: invalid start byte

- for the PNGOptimizer

Status: failed
Lossless processing: exlibris.png ...
Original file size: 11.21KB
Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
self.exitcode = target_script.run(container)
File "C:\Users\xxxx\AppData\Local\sigil-ebook\sigil\plugins\PNGOptimizer\plugin.py", line 159, in run
stdout, stderr, returncode = png_wrapper(*args)
File "C:\Users\xxxx\AppData\Local\sigil-ebook\sigil\plugins\PNGOptimizer\plugin.py", line 51, in png_wrapper
return stdout.decode('utf-8'), stderr.decode('utf-8'), returncode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 29: invalid start byte
Error: 'utf-8' codec can't decode byte 0xb3 in position 29: invalid start byte

I have Sigil 1.8 and Windows 10 Home installed. My mother tongue is polish.
Doitsu, can you help me?
I apologize for my poor English, but I have a translator.
bravosx
bravosx is offline   Reply With Quote