[magick-users] PerlMagick + Compose + Transparency
Erik Karlsson
pilo at ayeon.org
Sun Jun 1 23:50:16 PDT 2008
Anthony Thyssen wrote:
> | 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?
>
>
I just want to overlay whatever transparent picture on another picture,
preserving the transparency but increase the opacity of the
non-transparent areas.
I was under the impression "Over" would preserver transparency and it
does, so long as I don't try to increase the opacity.
What type of compose-method should I use for this end?
Thanks,
Erik.
More information about the Magick-users
mailing list