I am not sure I understand what you are trying to do. But process
your grayscale image without transparency to the form you want, then
add that processed image to your original as the alpha channel.
See copyopacity
http://www.imagemagick.org/Usage/compose/#copyopacity
Hello,
I have gray images and I want to transform intervals
of gray values to transparent with PerlMagick, lets say
[rgb: 0 0 0 0 ... rgb: 45 45 45 0]. I have tried it with
for ($j = 0; $j <= 45; $j++) {
$rgb_gray = 'rgb:' . ' ' . $j . ' ' . $j . ' ' . $j . ' ' . '0';
$image->Transparent(colors=>"$rgb_gray");
};
but it seems that only 0 0 0 0 will be transformed to
transparent (even if I choose an interval where
black is not included). How can this task be done?
Thank you!
_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users