another memory aid / another photo-shrinkage script
# World's simplest resizing script, standing tenuously on the shoulders of the imagemagick giants :)
# to use, place this script in a directory of pictures you want to resize. Invoke it ("./thumbit5050"). Bam.
# Intended result: 3 directories (for shrunken images, original images, movies)
# first created 20060206 Philadelphia by Tim
# last updated 20060206 Philadelphia by Tim
for img in *.[j,J][p,P][g,G]
do
convert -sample 50%x50% -quality 50 $img 50pct-$img
done
for img in 50*.[j,J][p,P][g,G]
do
convert -bordercolor black -border 15x15 $img frame-$img
done
rm 50pct*[j,J][p,P][g,G]
mkdir 5050versions
mv *50pct* 5050versions/
mkdir full-size
mv *.[j,J][p,P][g,G] full-size/
# mkdir movies
# mv *[a,A][v,V][i,I]
I wish I knew enough to uncomment those last lines without generating an error when this script is run in a directory which happens to not contain any .avi files ...