in reply to Image::Magick
The code below should do the trick.
However, I'm looking for a way to make the image over transparent to 50%. It doesn't seem to work with the 'Over' compose method. The only way to do it would be to create a PNG with an alpha transparency set to 50%, but I can't find a way to make one with Image::Magick or GD. Has anyone have an idea?
<kbd>--$image_over->Read("over.gif"); $image_under->Read("under.jpg"); $image_over->Transparent("white"); # Set the transp. color $image_under->Composite( compose => 'Over', opacity => 50, # Doesn't seem to work with 'Over' x => 20, y => 25, image => $image_over, ) ; $image_under->Write("Composite.jpg");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Image::Magick
by merlyn (Sage) on Dec 03, 2000 at 21:39 UTC | |
by Br'er Rabbit (Novice) on Sep 21, 2019 at 19:53 UTC | |
|
Re: Re: Image::Magick
by Anonymous Monk on Dec 04, 2000 at 18:45 UTC |