#!/bin/bash #file number to start with COUNT=1 # total number of original files OTOTAL=99 # 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 #creates two 720x333 composites of two images with an overlap in the middle, source files must be 420x333, # the creation of the mask described in the parent doc. convert altona/$VAR.jpg -extent 720x333 contain/$VAR.jpg overlap_mask.png -gravity East -composite -limit area 8192 -limit memory 8192 over_$VAR.jpg convert hans/$VAR.jpg -extent 720x333 platte/$VAR.jpg overlap_mask.png -gravity East -composite -limit area 8192 -limit memory 8192 over2_$VAR.jpg #attaches one of the above files to the bottom of the other with an overlap between them. convert over_$VAR.jpg -extent 720x576 over2_$VAR.jpg overlap_mask_total.png -gravity South -composite -limit area 8192 -limit memory 8192 overlap_$VAR.jpg echo $VAR #add 1 to the number of the last runthrough let COUNT=COUNT+1 done