#!/bin/bash # make directory where the image will be placed in mkdir play # crops and duplicates the image putting the copy beside the original. threshold is used to increase the b&w character # of the image. for f in *.png do convert $f -crop 285x390+145+90 +repage +clone +append -threshold 50% -resize 720x576 play/appended_$f echo $f done