length=240
padding=20
border=180
montagegeometry="${length}x${length}+${padding}+${padding}"

echo "Creating base montage... ($montagegeometry)"
montage New\ Crops/* -geometry "$montagegeometry" -background black montage.png
echo "..done."

echo "Applying frame (${border})..."
convert montage.png -bordercolor black -border "$border" montage-frame.png
echo "..done."

echo "Breaking into quadrant tiles..."
convert montage-frame.png -crop 50%x50% montage-tile-%d.png
echo "..done."
