开源
https://github.com/kud/jpegrescan
https://github.com/mozilla/mozjpeg
https://github.com/rflynn/imgmin
https://github.com/danielgtaylor/jpeg-archive
在线版
https://imageoptim.com/mozjpeg
未测试
# Ubuntu users can install via apt-get:
sudo apt-get install build-essential autoconf pkg-config nasm libtool
git clone https://github.com/mozilla/mozjpeg.git
cd mozjpeg
autoreconf -fiv
./configure --with-jpeg8
make
sudo make install
# pkg install mozjpeg
git clone https://github.com/danielgtaylor/jpeg-archive.git
cd jpeg-archive/
make
sudo make install
参照
https://blog.avirtualhome.com/replace-jpeg-libraries-with-mozjpeg/