If so, is there a command-line method of doing this?
I have searched everywhere for a true TTF font with more than one color but so far, no luck.
I use ImageMagick command line tools already in a batch to do things that normally took multiple open, edit, close functions
and would be delighted to find a way to handle this.
For instance, taking a line of text, adding a red or blue Halo effect, then converting to png.
Or even convert to png as black on white background then add the halo.
the end product has to be a png file anyway
Thanks for any suggestions There are so many ways to do things in ImageMagick that sometimes I think it really is Magick!
Can Image magic create an outline around text?
-
- Posts: 3
- Joined: 2016-02-12T19:25:16-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Can Image magic create an outline around text?
See the usage pages, eg http://www.imagemagick.org/Usage/fonts/
snibgo's IM pages: im.snibgo.com
- GeeMack
- Posts: 718
- Joined: 2015-12-01T22:09:46-07:00
- Authentication code: 1151
- Location: Central Illinois, USA
Re: Can Image magic create an outline around text?
That sort of thing is frequently done by using "-annnotate" twice, something like this (using ImageMagick 7 on Windows 7 64)...questorfla wrote:For instance, taking a line of text, adding a red or blue Halo effect, then converting to png.
Or even convert to png as black on white background then add the halo.
Code: Select all
magick -size 400x100 xc:none -pointsize 36 -fill white -stroke blue -strokewidth 4 -gravity center ^
-annotate +0+0 "Your Text Here" -blur 0x3 -stroke none -annotate +0+0 "Your Text Here" result.png
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Can Image magic create an outline around text?
If on Unix (Linux, Mac OSX or Windows with Cygwin or Windows 10), see my scripts texteffect and texteffect2 at the link below.
P.S. Outline fonts do exist, but they are b/w and not two-colors
P.S. Outline fonts do exist, but they are b/w and not two-colors