#!/bin/sh
# 12/15/02 
# Assumes you are in a directory with the full-size photos and want the
# converted ones up a level...
for f in *.JPG;
  do
  echo $f
  id=`identify $f`
  echo "id is " $id
  size=`echo $id | awk '{print $2}'`
  echo "size is " $size
  case "$size" in 
    "1600x1200") newSize=800x600 ;;
    "1200x1600") newSize=600x800 ;;
    "2272x1712") newSize=800x600 ;;
    "1712x2272") newSize=600x800 ;;
    *) echo "Unmatched case!! " $size ;;
  esac
  echo "newSize is " $newSize
  convert -size $newSize $f ../$f
done
