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

Multithreaded option? #67

Closed andrew-bydlon closed 2 years ago

andrew-bydlon commented 5 years ago

Is there no option to multithread the procedure. For batch processing on modern computers, this seems essential.

andrew-bydlon commented 5 years ago

Here is a simple way to handle it:

N = 16 # Number of threads for file in ; do #where is the directory of interest) ((i=i%N)); ((i++==0)) && wait jpegoptim $file & done