Linux Batch redimensive jpg
# Resize if width or height larger
mogrify -resize '1280x1024>' *.jpg
# Resize to height
mogrify -resize x640 *jpg
# Resize to width
mogrify -resize 640 *.jpg
Smiling Shrew