I am using the following suggested on another site to remove a set of colors from a gif image, by making them transparent:
Code: Select all
my @noise = (
'#646464'
, '#ccffff'
, '#cc99cc'
, '#996699'
, '#663366'
, '#cccc99'
, '#999966'
, '#646464'
, '#04e9e7'
, '#019ff4'
) ;
my $fuzz = 32;
$img->Set(colorspace=> RGB, type=> TrueColor) ;
foreach my $color (@noise) {
$img>Transparent(color => $color, fuzz => $fuzz ) ;
}
This is supposedly working for others, but I can't seem to get it to work for me. I have even tried removing the foreach loop, and using just a single color, and still the target image and the new image are identical, aside from the slight overall color change from the new colorspace.
The version is ImageMagick 6.7.6-4
Anyone have any suggestions as to if something has changed, or why this does not seem to be working?
Thanks!
John