Page 1 of 1

How to read a bKGD chunk?

Posted: 2010-06-01T09:51:32-07:00
by banzalik
How to read a chunk bKGD?

Code: Select all

identify -verbose new.png 
If bKGD chunk does not exist, then wrote:

Code: Select all

Background color: white
If there bKGD chunk (any color value), then wrote:

Code: Select all

Background color: rgba(0,0,0,1)
How to find the correct value bKGD chunk, using ImageMagick?