in reply to Image compositing with opacity not working in perlmagick

You must tell ImageMagick to convert the internal working image into an RGBA buffer before it will composite other RGBA objects onto it properly. Create or load your "background" image with the truecolormatte type. Check my site's Hemera Photo Objects HOWTO script, especially the last bit, for a start on the right road. http://www.halley.cc/ed/linux/interop/hemera.html

--
[ e d @ h a l l e y . c c ]

  • Comment on Re: Image compositing with opacity not working in perlmagick

Replies are listed 'Best First'.
Re: Re: Image compositing with opacity not working in perlmagick
by skullcap23 (Initiate) on Jun 02, 2003 at 23:35 UTC

    I just tried adding the lines:

    $image2->Set(type=>"TrueColorMatte"); $image1->Set(type=>"TrueColorMatte");

    before doing the image composition, and it's still not working - however I set the composition mode and opacity, I can't make it do a semitransparent overlay.

    So unless I missed the point of what you were saying, this doesn't seem to be the answer.

    Andy Baxter.