/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#Install apt-get install imagemagick #Convert one file convert immagine1.jpg immagine1.png #Convert and resize one file convert immagine1.jpg -resize 50% immagine2.png # Resize all JPEG images in a folder to a maximum dimension of 256x256 mogrify -resize 256x256 *.jpg # Convert all JPEG to PNG format mogrify -format jpg *.png