I have several black & white images. If I run identify -verbose, Background Color: is correct; white when it is white, and black when it is black. However, when I use backgroundColor().to_std_string() always returns #FFFFFFFFFFFF. Moreover, I can do image.negate() and then the backgroundColor().to_std_string() still shows #FFFFFFFFFFFF (even though if I save the image, identify will show the correct color).
Am I not understanding something?
Why does backgroundColor() not match identify -verbose?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Why does backgroundColor() not match identify -verbose?
To items First #FFFFFFFFFFFF is white! Just a different representation of white
Second negate negates the image data. It does not touch meta-data such as background color
Second negate negates the image data. It does not touch meta-data such as background color
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/