[magick-users] How to write an 8-bit PNG even with 16 colours or less {perlmagick]

Jon Perkin jperkin at inview.co.uk
Tue Jan 15 08:41:57 PST 2008


Hi all.

 

I'm using PerlMagick to generate PNG images for use on an embedded
platform that only supports 8-bit (256-colour palette) PNG images.

 

If one of my images has 16 colours or less, PerlMagick 'cleverly'
creates a 4-bit (16-colour palette) PNG image, even if I've specified
depth=>8. The 4-bit version does not work on my target platform.

 

Does anyone know if there's any way I can force PerlMagick to give me an
8-bit PNG, even though my image has 16 colours or less? If anyone knows
how to do it using one of the other APIs that would still be useful.

 

Cheers, Jon.

 



More information about the Magick-users mailing list