Re: Creating character sheets using IM
Posted: 2019-08-15T11:02:29-07:00
No problem.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://download.imagemagick.org/discourse-server/
https://download.imagemagick.org/discourse-server/viewtopic.php?t=36520
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