Hi All
Im complete newbie to imagemagick.
I've just learned how to add text label onto image (-text option).
Now I'd like to make it a bit transparent. I searched for it but I cannot find anything with "opacity" or "transparency" connected to -text operation.
Is it possible to make it semi-opaque? And how?
And advanced one: Is it possible to add some noise in Value,Saturation,Opacity channel(s) to such text (or to any other added primitive)?
How to add to image a text with some transparency; optionally with some noise?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to add to image a text with some transparency; optionally with some noise?
What version of IM, on what platform?
There is no "-text" option. Please show the command you used.
Perhaps you need an alpha setting within a colour, eg "#abcd".
There is no "-text" option. Please show the command you used.
Perhaps you need an alpha setting within a colour, eg "#abcd".
snibgo's IM pages: im.snibgo.com
Re: How to add to image a text with some transparency; optionally with some noise?
Linux, Debian.
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101
Sorry - I mixed-up keywords. I meant -draw 'text "ABC"' operation. I apologize.
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101
Sorry - I mixed-up keywords. I meant -draw 'text "ABC"' operation. I apologize.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to add to image a text with some transparency; optionally with some noise?
Bash syntax:
The colour for the text is #f008, semi-transparent red.
Code: Select all
convert toes.png -gravity Center -pointsize 40 -fill "#f008" -draw 'text 0,0 "Hello world"' toes_hw.jpg
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to add to image a text with some transparency; optionally with some noise?
As snibgo has indicated, use a partially transparent color. You can use hex or rgb definitions. See https://imagemagick.org/script/color.php