Установка и настройка jpegoptim
1 |
# cd /root/ |
1 |
# wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.0.tar.gz |
1 |
# tar xvfz jpegoptim-1.4.0.tar.gz |
1 |
# cp -pr jpegoptim-1.4.0 /opt/jpegoptim |
1 |
# cd /opt/jpegoptim/ |
1 |
# less README |
1 |
# yum install libjpeg* |
1 |
# ./configure |
1 |
# make |
1 |
# make strip |
1 |
# make install |
http://stackoverflow.com/questions/18515433/cannot-install-jpegoptim-on-centos-6
https://github.com/tjko/jpegoptim
http://www.kokkonen.net/tjko/src/man/jpegoptim.txt
Установка и настройка optping
1 |
# wget http://prdownloads.sourceforge.net/optipng/optipng-0.7.5.tar.gz?download |
1 |
# tar xvfz optipng-0.7.5.tar.gz |
1 |
# mv optipng-0.7.5.tar.gz /opt/opting |
1 |
# cd /opt/opting |
1 |
# less /opt/optipng/README.txt |
1 |
# ./configure |
1 |
# make |
1 |
# make test |
1 |
# make install |
Пример оптимизации png-файла
1 |
# optipng -o7 ./content/images/logoic.png |
Документация
http://optipng.sourceforge.net/optipng-0.7.5.man.pdf