Glow text on image... how to place on picture..

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
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Glow text on image... how to place on picture..

Post by dognose »

so, I'm working on adding glowing text to an image, and I've gotten pretty far with the examples, and I can
produce it on a white background.

Image

Code: Select all

convert -size 200x200 xc:none -pointsize 40 -fill green -draw \"text 0,90 'Glowing'\"  -matte  \( +clone -background red -shadow 90x7+2+2 \)  +swap -background white -flatten output.gif
My problem however is with how to put this on a picture, instead of using the "-background white" part.

I can't start with a picture, because the shadow option shadows the whole picture.

I can't use -background transparent, because the shadow/glow doesn't show up.

I guess my main problem is handling multiple frames in a single command and getting them to merge correctly.

Any hints?
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Glow text on image... how to place on picture..

Post by el_supremo »

I can't get it to work with GIF either, but it will work if you can use PNG. Change -background to transparent (or none) and use output.png as the result file.

Pete
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Glow text on image... how to place on picture..

Post by Bonzo »

This probably will not help but this puts the text on the image:

Code: Select all

convert 021207140232.jpg \( -size 200x200 xc:none -pointsize 40 -fill green -draw \"text 0,90 'Glowing'\" \) -composite output.gif
or

Code: Select all

convert 021207140232.jpg \( -size 200x200 xc:none -pointsize 40 -fill green -draw \"text 0,90 'Glowing'\" -matte \( +clone -background red -shadow 90x7+2+2 \) +swap -background none -flatten \) -composite output.gif
I think it must be ignoring the parenthases inside the parenthases.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Glow text on image... how to place on picture..

Post by anthony »

Parentheses in parenthesis should work.

In any case replace

Code: Select all

-background white -flatten
with

Code: Select all

image.jpg +swap -composite
shoudl do the job
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply