How to increase opacity of a text shadow?

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?".
Post Reply
skribb
Posts: 4
Joined: 2015-01-28T05:11:26-07:00
Authentication code: 6789

How to increase opacity of a text shadow?

Post by skribb »

Hi, i have created a text using

Code: Select all

convert -size 500x250 canvas:none -font Roboto-Regular -pointsize 160 -draw "text 90,230 '12.34'" -channel RGBA -blur 0x30 -fill white -draw "text 90,230 '12.34'" clock.png
which renders:
Image

Now, i am happy with the result apart from one thing, and it's the opacity of the shadow. How do i make the shadow less translucent?
The blur amount is correct so it's not a matter of decreasing the blur (which of course will increase the opacity but transform the shadow into a normal text contour).

thanks :D
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to increase opacity of a text shadow?

Post by snibgo »

After blurring, before writing the white text, you can insert something like:

Code: Select all

-channel A -evaluate Multiply 2 +channel
Multiplying by >1 will make it more opaque, <1 will make it more transparent. Or you can use a gamma function, or other magick.
snibgo's IM pages: im.snibgo.com
skribb
Posts: 4
Joined: 2015-01-28T05:11:26-07:00
Authentication code: 6789

Re: How to increase opacity of a text shadow?

Post by skribb »

That's some ockult magick right there! Works perfect, thanks :)
Post Reply