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:36]
linkuff
optimisation:images [2020/12/17 14:26]
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/mozjpeg+<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>
Ligne 38: Ligne 42:
 Utilisation : Utilisation :
 <code>optimize_jpegs.pl /path/to/jpegs</code> <code>optimize_jpegs.pl /path/to/jpegs</code>
- 
  
 ===== Installation optipng : ===== ===== Installation optipng : =====
optimisation/images.txt · Dernière modification: 2020/12/17 14:26 de linkuff