#!/bin/bash #file number to start with COUNT=1 # total number of original files OTOTAL=117 # loop to call up the files to process. calls up files numbered from 000-999 in accending order while [ $COUNT -le $OTOTAL ]; do if [ $COUNT -le $OTOTAL ]; then VAR=`printf "%03d" $COUNT` fi #crops digicam fotos to hdv size and puts one on top of the other allowing the differences to see through. convert \( test/marzahn/$VAR.jpg -crop 1920x1080+608+654 +repage \) \( test/single/$VAR.jpg -crop 1920x1080+476+490 +repage \) -compose difference -composite test/composed_$VAR.jpg echo $VAR #add 1 to the number of the last runthrough let COUNT=COUNT+1 done