How to read a bKGD chunk?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
banzalik

How to read a bKGD chunk?

Post 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?
Post Reply