Més fàcil, impossible!

Simplement:

1. Instal·la ImageMagick

2.Configura les variables d’entorn:

export MAGICK_HOME="/opt/local/var/ImageMagick-6.5.3"
export PATH="/opt/local/var/ImageMagick-6.5.3/bin:$PATH"
export DYLD_LIBRARY_PATH="/opt/local/var/ImageMagick-6.5.3/lib"

3. Escala:

bash-3.2$ /opt/local/bin/mogrify -resize 525x700 image.jpg

(NOTA: Sobreescriu l’imatge (no crea una imatge nova))

Tags: , ,
Deixa una resposta