Outils pour utilisateurs

Outils du site


optimisation:images

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
optimisation:images [2018/03/30 09:39]
linkuff [Installation mozjpeg :]
optimisation:images [2020/12/17 14:26] (Version actuelle)
linkuff [Installation mozjpeg :]
Ligne 23: Ligne 23:
  
 ===== Installation mozjpeg : ===== ===== Installation mozjpeg : =====
-<code>apt-get install autoconf automake libtool nasm make pkg-config git+<code>apt install zlib1g-dev libpng-dev 
 +apt-get update 
 +apt-get install cmake autoconf automake libtool nasm make pkg-config 
 +cd /root/
 git clone https://github.com/mozilla/mozjpeg.git git clone https://github.com/mozilla/mozjpeg.git
 cd mozjpeg cd mozjpeg
-autoreconf -fiv +mkdir build && cd build 
-./configure +cmake -G"Unix Makefiles" ../
-make+
 make install</code> make install</code>
  
 Après l'installation : Après l'installation :
-<code>ln -s /opt/mozjpeg/bin/jpegtran /usr/bin/jpegtran+<code>ln -s /opt/mozjpeg/bin/cjpeg /usr/bin/mozjpeg 
 +ln -s /opt/mozjpeg/bin/jpegtran /usr/bin/mozjpegtran 
 +ln -s /opt/mozjpeg/bin/jpegtran /usr/bin/jpegtran
 wget https://gist.githubusercontent.com/aksuited/96ea6144d9b62befbce23fd62b3b7b4d/raw/e31a74da9d7eaa6004969716f49c08e8d0a4de62/optimize_jpegs.pl wget https://gist.githubusercontent.com/aksuited/96ea6144d9b62befbce23fd62b3b7b4d/raw/e31a74da9d7eaa6004969716f49c08e8d0a4de62/optimize_jpegs.pl
 chmod 755 optimize_jpegs.pl</code> chmod 755 optimize_jpegs.pl</code>
optimisation/images.1522402775.txt.gz · Dernière modification: 2018/03/30 09:39 de linkuff