Erik Karlsson on wrote...
| Hello.
|
| I am trying to watermark images with a simple text using PerlMagick.
| However,
| I cannot seem to create a temporary image with true transparency.
| Basically,
| what I want is to create the watermark as a temporary, transparent
| image, and
| then overlay it onto the target image.
|
| I create an image using
| > $wimage->Read("xc:transparent");
|
| Which yields a transparent image, via
| > $wimage->Write("foo.png");
|
| But when trying to overlay it on the target
| > $image->Composite(image => $wimage,
| > compose => "Over",
| > opacity => int($opacity * (2 ** $wimage->Get('depth'))));
| the "transparent" background is instead black, but the opacity is in
| effect on that black background.
|
| Without opacity, the transparent background is transparent as it should.
|
The "Over" option I do not believe is needed for most compositions, but
is used for some special cases.
What are you trying to achieve by setting it?
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
Copyright 19.... ah hell, just take it.
Jeffrey Friedl Perl Dec 1994.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users