Page 1 of 1

How can I determine the visual, background color?

Posted: 2019-09-24T19:57:42-07:00
by Sallybui123
Hi guys
I've got a program that users can upload images. The instructions say to always make the visual, background color 256 256 256; but they don't do so.

The images are simple street maps.

I'd like to be able to determine if the background is grey, light green, or whatever, and convert it to white.

Basically, I need the equivalent of the max bar on the histgram.

Anyone have a suggestion?
Thanks
Sally

Re: How can I determine the visual, background color?

Posted: 2019-09-24T23:17:41-07:00
by fmw42
What is your ImageMagick version and platform/OS? Post some example images.