Make a text transparent

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
fr33d0m

Make a text transparent

Post by fr33d0m »

Hi, i need help here :)
I want to put a text on an image and i want to make the text transparent.
I try this command : convert a.jpg -pointsize 50 -transparent black -draw "text 250, 250
'Works'" test1.jpg, but it didn't work.
Can someone help me, pls?
Thanks in advance...
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Make a text transparent

Post by el_supremo »

Try this and see if it does the kind of thing you want:

Code: Select all

convert a.jpg -pointsize 50  -fill rgba(100%,100%,0,0.3) -gravity southwest -annotate +0+0 "Works" test1.jpg
It writes partially transparent yellow text on the image.

Pete
fr33d0m

Re: Make a text transparent

Post by fr33d0m »

Well, yes it is.
Thank you very much, el_supremo :)
Post Reply