Glittering Text?

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
arindra

Glittering Text?

Post by arindra »

Sir,
For making a glitter text,how can i fill a text with a animated gif image?
i used the code here:

convert -size 355x135 xc:none -fill darkred -font ./fonts/anagram.ttf -pointsize 40 -draw \" text 0,75 'CODE' \" -pointsize 80 -draw \" text 135,110 '2'\" -pointsize 40 -draw \"text 190,110 'IMAGE'\" logo1.gif

convert logo1.gif -channel matte -negate -separate logo1_mask.gif

composite -compose CopyOpacity logo1_mask.gif tests5.jpg result1.gif

the above code is right when i fill the text with jpg image
but the result is totally black when i fiil the text with animated gif image.
please help as soon as possible....
Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Glittering Text?

Post by anthony »

IM examples for this type of thing is comming. Just waiting on a few new -layers methods for alpha compositiong of multiple images.

It is posible to do it right now, but not as simple as it will be after the new operators have been created. Aee animation alpha composition, http://www.imagemagick.org/Usage/animations/#compose

In the mean time look at the opening example on the animation basics page...
http://www.imagemagick.org/Usage/anim_basics/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Glittering Text?

Post by anthony »

When I get some time... I have just spent a lot of time on Image Distortion additions and have not had time to look at glitter.

If it does appear it will probably be either in advanced stars.
http://www.imagemagick.org/Usage/advanced/#stars
Or if I get time a whole new section "animation cookbook" (not likely soon).

In the mean time look at "Its full of stars" in the MagicStudio Forum. which is the main discussion topic for this type of thing.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Glittering Text?

Post by anthony »

Some news... With the impending release of IM v6.3.5 a +noise Random has been added. This makes creating random stars a lot faster than the -fx method.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply