Batch image resizing on Linux

Print Friendly, PDF & Email

To resize all the JPEG files in a directory so that one of the dimensions is maximum 800 pixels.
The \> implies that the images will only be made smaller, never bigger

ImageMagick must be installed

 mkdir tmp  
 for file in `ls *jpg`; do echo $file; convert $file -resize 800x800\> tmp/$file; done

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.