Creating character sheets using IM

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating character sheets using IM

Post by fmw42 »

No problem.
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: Creating character sheets using IM

Post by GeeMack »

mrvico wrote: 2019-08-15T09:36:16-07:00Yeah, i think the lack of the red pixels made the screen on the steering wheel render garbled...
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
Post Reply