Last active
September 24, 2017 17:12
-
-
Save MrChebik/d5cd2920d49415122376ef2f600907ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Install | |
CentOS6: | |
$ yum install wget autoconf automake gcc nasm git | |
$ wget https://github.com/mozilla/mozjpeg/releases/download/v3.1/mozjpeg-3.2-release-source.tar.gz | |
$ tar xvfz mozjpeg-3.2-release-source.tar.gz | |
$ cd mozjpeg | |
$ ./configure | |
$ make | |
$ make install | |
$ ln -s /opt/mozjpeg/bin/jpegtran /usr/bin/mozjpeg | |
Mageia: | |
$ urpmi autoconf automake libtool gcc nasm make pkg-config git | |
$ git clone https://github.com/mozilla/mozjpeg.git | |
$ cd mozjpeg | |
$ autoreconf -fiv | |
$ ./configure | |
$ make | |
$ make install | |
$ ln -s /opt/mozjpeg/bin/jpegtran /usr/bin/mozjpeg | |
--In action | |
$ mozjpeg -copy none -outfile /path/to/output.jpeg /path/to/input.jpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment