I have multiple images stored in a set of organized folders. I need to re-size those images to a specific percentage recursively from their parent directory
You can use imagemagick tool for batch resize.
It will maintain the aspect ratio
$ convert dragon.gif -resize 64x64 resize_dragon.gif
It will not maintain the aspect ratio
$ convert dragon.gif -resize 64x64\! exact_dragon.gif
$ cat resize.sh
#!/bin/bash
for f in `find . -name "*.jpg"`
do
convert $f -resize 45x60\! $f.resize.jpg
done
It will resize the image to 45x60 without maintaining the aspect ratio in current directory.