|
Batch resize images using imagemagick |
|
|
|
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 !
|