Walter Higgins on wrote...
| Hi Dermot,
|
| I have a perl function which converts an image to sepia-tone as follows...
|
| sub sepia
| {
| my ($image, $color) = @_; # original image object and color
| my $overlay = $image->Clone; # clone the image to create the top colored
layer
| $overlay->Colorize(fill => $color, opacity=>"100%"); # color the top layer
| $image->Quantize(colorspace => "Gray"); # make the bottom layer grayscale
| $image->Composite(image=>$overlay, compose=>"Overlay"); # overlay the top
layer
| return $image;
| }
|
| All I know is it works with 6.2.3 and later. With 6.0.7 I get an all-black
image.
| I'm assuming there is a bug in the Composite() method which has been fixed in
later versions. Can anyone tell me if the "Overlay" compose type is supported
in 6.0.7 ?
|
| Dermot Paikkos <[EMAIL PROTECTED]> wrote: Generally speaking all rpm packages
are a bit behind the source as
| someone has to take the time to create the rpm ...etc.
|
| If you want the very latest you will need to install from source.
|
| I am not expert in compositing but perhaps you should outline what
| the problem is. Are you sure there was a bug with v6.0.7 that was
| fixed in 6.2+?
|
| Dp.
|
|
Their was a bug in Overlay, but that was fixed when I noticed the
problem in creating IM Examples.
Hmmm in version 6.1.6 actually, so yes it is fixed.
The bug as I member would make an image all black except for points with
almost perfect white pixels. Really strange, whcih was why I noticed
and reported it as a bug.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
"Well, don't just stand there, Sergeant Benton. Go put yourself under arrest."
-- Brigadier, Doctor Who, "Invasion of the Dinosaurs"
-----------------------------------------------------------------------------
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