This is a bit of an odd question, but basically I'm trying to create a set of Pictionary cards for a game. To do this, I have a list of 1500 nouns separated by newlines and I need each of them to be placed on individual PNG files of a specific resolution. Is there an easy way of doing this?
convert -background black -fill white -pointsize 32 \ -size 500x300 -gravity center caption:'WORD' WORD.png
Here's the resulting PNG:
Then all you need is a script to input your words file and feed them in to that command. Here's how to do it with bash:
#!/bin/bash while IFS='' read -r line || [[ -n "$line" ]]; do convert -background black -fill white -pointsize 32 \ -size 500x300 -gravity center caption:$line $line.png done < "$1"
Usage would be