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: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to dirty a font

Post by snibgo »

"xc:lightblue" creates an image.
snibgo's IM pages: im.snibgo.com
FrereTuck
Posts: 19
Joined: 2017-10-13T02:50:15-07:00
Authentication code: 1151

Re: How to dirty a font

Post by FrereTuck »

Thanks. I hadn't seen that, my bad.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to dirty a font

Post by fmw42 »

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: 19
Joined: 2017-10-13T02:50:15-07:00
Authentication code: 1151

Re: How to dirty a font

Post by FrereTuck »

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: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to dirty a font

Post by anthony »

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
https://imagemagick.org/Usage/
FrereTuck
Posts: 19
Joined: 2017-10-13T02:50:15-07:00
Authentication code: 1151

Re: How to dirty a font

Post by FrereTuck »

Thanks a bunch, Anthony!
Post Reply