"Chase, Andrew" on wrote... | Hi Again, | | So I've got a working solution now and wanted to share it with the group. To get to my working solution, I had to step back in my image processing pipeline to where I have a grayscale image. I want to convert this image to transparent wherever it's black, and red where it's white. To make a long story short, I found the following combination of options worked for me: | | #>convert test.png -transparent-color black -fill red -opaque white -map netscape: test.png | | I think the most important thing I changed was starting with a grey scale 8BPP rather than trying to downscale a 64BPP image. | | Thanks for the help, sorry for being such a noisy list user. | Now that you defined your problem exactly, I can give you a solution with semi-transparent red for pixels that are grey.
See IM Examples, Masks as Colored Shapes http://www.imagemagick.org/Usage/channels/#shapes Try... convert test.png +clone +matte -compose CopyOpacity -composite \ -fill Red -colorize 100% red.png This will ensure any anti-aliased edges remain anti-aliased. Of course it has semi-transparency, which in other discussions you said you did not want. So I am glad if you solution produces PNG8 images with 256 color colortables. Is that the case? That is you have 2 color images with 256 color colortables. If so -map will be extremely more important to Animation color reducion than I previously throught. Seeing it is the only way to convert images, into indexed color images in memory. Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- Our continuing mission: To seek out knowledge of C, to explore strange UNIX commands and to boldly code where no one has manpage 4... ----------------------------------------------------------------------------- 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
