*** useful stuff |
Jun 17 |
I just wanted to resize/convert some photos for my wife’s iRiver S10
so, we need 96*128, bmp. Mostly I have horisontal oriented photos, so we will rotate our thumbnail 90 degrees.
*powered by ImageMagick*
#/bin/bash
for img in `ls *.jpg`
do
convert $img -thumbnail x96 -resize '200x<' -resize 80%
-gravity center -crop 128x96+0+0 +repage -rotate 90 ./thumbs/$img.bmp
done