[magick-users] CLUT file from PNG file

Ryujin horacio.sanson at gmail.com
Thu Jan 24 17:23:14 PST 2008


I was assigned the task of creating some PNG images for Digital 
Broadcasting and the standard I need to follow 
(http://www.dibeg.org/aribstd/ARIBSTD.htm) says in STD-B24 Version  5.1 
Vol-1 section 5.3 and 5.3.1:

/* Quote from section 5.3.1 */

When the color type is "3" (palette index), PLTE chunk in the PNG data 
is omitted. In this case, CLUT should be presented in the multimedia 
contents and the receiver should not refer PLTE chunk but should refer 
the outside CLUT.

/* End Quote */

My question is if ImageMagick is able to create this external CLUT 
file?? the documentation shows a -clut command but is for replacing the 
current palette with a different one. I need to extract the current 
palette (PLTE chunk) from a PNG image and create a CLUT file with it.

any help is greatly appreciated....




More information about the Magick-users mailing list