The Cube - Assimilating Technology

The Cube

Batch resize images using imagemagick

For Humans only


Batch resize images using imagemagick Print E-mail

Doing websites, I have to resize images, mostly in a batch.

The quickest way to do this is using imagemagick

Start in the folder where your images are located 

First create a temp folder to hold the resized images

mkdir /tmp/output

then run the following command (adjust accordingly)

find . -name "*.jpg" -exec convert -resize 400x300 -quality 75 {} /tmp/output/{} \;

copy the adjusted images to overwrite your current images

cp -xv /tmp/output/* ./

remove the temp folder

rm -rf /tmp/output

As simple as eating pie !

 
Share on facebook