Posted By

Homitsu on 01/07/10


Tagged

imagemagik


Versions (?)

Imagemagik base


 / Published in: Bash
 

  1. #Install
  2.  
  3. apt-get install imagemagick
  4.  
  5.  
  6. #Convert one file
  7.  
  8. convert immagine1.jpg immagine1.png
  9.  
  10.  
  11. #Convert and resize one file
  12.  
  13. convert immagine1.jpg -resize 50% immagine2.png
  14.  
  15.  
  16. # Resize all JPEG images in a folder to a maximum dimension of 256x256
  17.  
  18. mogrify -resize 256x256 *.jpg
  19.  
  20.  
  21. # Convert all JPEG to PNG format
  22.  
  23. mogrify -format jpg *.png

Report this snippet  

You need to login to post a comment.