I was wondering if it's possible to optimize the following convert and composite code ?
I've added 3 sample lines below of what i have. I have a huge file of words to convert and composite to a custom background canvas.
Everything is the same except the Labels.
( I copied this code from somewhere on this forum and modified it slightly to meet my needs. )
Code: Select all
convert -size 100x100 -background white -font arial.ttf -fill black label:"Australia" -trim +repage -depth 8 australia.jpg && composite -gravity center australia.jpg canvas.png australia.jpg
convert -size 100x100 -background white -font 1/arial.ttf -fill black label:"Fiji" -trim +repage -depth 8 fiji.jpg && composite -gravity center fiji.jpg canvas.png fiji.jpg
convert -size 100x100 -background white -font 1/arial.ttf -fill black label:"Tonga" -trim +repage -depth 8 tonga.jpg && composite -gravity center tonga.jpg canvas.png tonga.jpg