tjko / jpegoptim

jpegoptim - utility to optimize/compress JPEG files
http://www.iki.fi/tjko/projects.html
GNU General Public License v3.0
1.56k stars 116 forks source link

Parallel processing support in Windows? #128

Open dmitry-brok opened 1 year ago

dmitry-brok commented 1 year ago

AFAIK this -w option should work since version 1.5.0. >>Parallel processing support added. Use option -w max or --workers=max to enable.

I built the latest jpegoptim under Ubuntu and the -w worked just fine This Windows build seems to have no this option enabled

I really need this parallel processing under Windows ... Is there a way to get it?

tjko commented 1 year ago

Current parallel processing implementation relies on fork() system call, that is not present in Windows (or has it been recently added?), so it's not trivial to enable this feature on Windows...

Using threading (vs. current forking) might be one option, but I seem to recall that libjpeg library was not thread-safe.... (?)

dmitry-brok commented 1 year ago

Okay I got it So it's not that easy I have to stay with linux version though

Thank you