Creating character sheets using IM
- GeeMack
- Posts: 718
- Joined: 2015-12-01T22:09:46-07:00
- Authentication code: 1151
- Location: Central Illinois, USA
Re: Creating character sheets using IM
This command determines where the edge of the character is, then adds a red dot at the top on the third pixel to the right of each character. It uses "-trim" to get the width of the character, so there will still be a problem with the placement of that red dot on empty characters like a space. If you can create the character sheet with IM, then manually adjust the location of those few incorrect red reference pixels in some graphics software like Gimp, you should get what you need with very little manual work.
Code: Select all
imfont=Helvetica
convert -font ${imfont} -background none -bordercolor none -gravity southwest \
-pointsize 16 -size 19x25 label:"\ " @chars.txt +gravity -delete 220--1 \
-background \#1600f3 -splice 1x0 -border 1 -trim -background none -flop \
-splice 3x0 -fill \#E10000 -draw "point 0,0" -flop -extent 20x25 \
-background \#1600f3 -splice 0x1 +append +repage -crop 200x26 -append +repage \
-gravity southeast -splice 1x1 -background \#626b62 -flatten charsheet.png