How to dirty a font

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?".
snibgo
Posts: 9403
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to dirty a font

Post by snibgo » 2017-11-09T09:48:44-07:00

"xc:lightblue" creates an image.
snibgo's IM pages: im.snibgo.com

FrereTuck
Posts: 11
Joined: 2017-10-13T02:50:15-07:00
Authentication code: 1151

Re: How to dirty a font

Post by FrereTuck » 2017-11-09T09:50:13-07:00

Thanks. I hadn't seen that, my bad.

User avatar
fmw42
Posts: 22103
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: How to dirty a font

Post by fmw42 » 2017-11-09T11:09:12-07:00

xc: is the same as canvas: and is the command to create a new image of some color and size as specified by -size and x:"somecolor".

see
http://www.imagemagick.org/Usage/canvas/#solid

FrereTuck
Posts: 11
Joined: 2017-10-13T02:50:15-07:00
Authentication code: 1151

Re: How to dirty a font

Post by FrereTuck » 2017-11-09T11:20:13-07:00

Nice. I added "xc:white", and it worked. Maybe the script at http://www.imagemagick.org/Usage/fonts/#dirty_print could be changed accordingly.

User avatar
anthony
Posts: 8869
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to dirty a font

Post by anthony » 2017-11-09T16:35:20-07:00

opps my bad.. I removed the xc: from the example.. The lightblue did not matter because of the threshold so I removed some of the useless options and went a little too far.
Example is now...

Code: Select all

  convert -size 320x100 xc: \
          -font Candice -pointsize 72 -annotate +25+65 'Anthony' \
          -spread 1 -blur 0x1 -threshold 50% -blur 0x1 font_dirty_print.jpg
Upload make take a little time to get though web caching
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/

FrereTuck
Posts: 11
Joined: 2017-10-13T02:50:15-07:00
Authentication code: 1151

Re: How to dirty a font

Post by FrereTuck » 2017-11-10T01:33:22-07:00

Thanks a bunch, Anthony!

Post Reply