View Single Post
Old 11-26-2021, 01:09 PM   #8
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"
Quote:
Originally Posted by Doitsu View Post
The plugin(s) might fail, if the image file name contains non-ASCII characters and/or you're running a very old Windows version.

I'll run some tests and try to update the code to fix this issue.

In the meantime, try changing the following part in both plugin files:

Code:
return stdout.decode('utf-8'), stderr.decode('utf-8'), returncode
to:

Code:
return stdout.decode('utf-8', 'ignore'), stderr.decode('utf-8', 'ignore'), returncode
This should display the error messages returned by the utilities.
@Doitsu
In the PNGOptimizer plug, I changed the line as you suggested and it worked fine. I received this message:
Status: success


Lossless processing: exlibris.png ...
Original file size: 11.21KB
Optimized file size: 9.73KB (86.75%)
Image replaced with optimized image.

Lossless processing: logo_mon.png ...
Original file size: 3.12KB
Optimized file size: 2.02KB (64.63%)
Image replaced with optimized image.

Processing time: 0:00:00.15

Total reduction: 2.59KB

Done.
Click OK to close the Plugin Runner window.

The JPEGOptomizer plug also worked (I made a mistake before). I have received a feedback report:
Status: success


Lossless optimization: cover.jpg ...
Original file size: 137.45KB
Optimized file size: 129.08KB (93.90%)
Image replaced with optimized image.

Total reduction: 8.38KB

Done.
Click OK to close the Plugin Runner window.


I am using Windows 10 Home 21H1 OS build 19043.1348

Thank you very much, your prescription helped.

regards
bravosx

Last edited by bravosx; 11-26-2021 at 01:40 PM.
bravosx is offline   Reply With Quote