adept-jpg-compressor
adept-jpg-compressor copied to clipboard
Easier installation on Ubuntu
Make a one line installation script that easily installs it with dependencies on Ubuntu 12.04 and 14 and this is going to become the default way to compress jpegs for web. (Bonus) options for resizing. the images. (Bonus 2) options for batch compression.
I agree. So far I'm stuck at getting jpegrescan to work on Ubuntu.
This is what I did:
sudo apt-get install imagemagick imagemagick-common
sudo apt-get install libmagick++-dev libmagick++4
sudo apt-get install jpegoptim
sudo apt-get install libperl6-slurp-perl libfile-slurp-perl
git clone https://github.com/kud/jpegrescan.git
sudo ln -s jpegrescan/jpegrescan /usr/local/bin/jpegrescan
There's an issue with jpegrescan on Debian/Ubuntu
https://github.com/technopagan/mss-saliency.git
cd mss-saliency/Release/ && make all
sudo ln -s SaliencyDetector /usr/local/bin/SaliencyDetector
git clone https://github.com/technopagan/adept-jpg-compressor.git
sudo ln -s adept-jpg-compressor/adept.sh /usr/local/bin/adept.sh
bash adept.sh /path/to/image.jpg
We could make Adept rely on mozjpeg instead of jpegoptim + jpegrescan because mozjpeg now has many great table optimizations. I'm sure that mozjpeg will yield equal to better compression results. However, adaptive compression is currently being merged into mozjpeg native, too. So some day soon, Adept won't be necessary any more & we can all happily rely on mozjpeg for compression. :)