How can I determine the visual, background color?

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
Sallybui123
Posts: 1
Joined: 2019-09-24T19:56:17-07:00
Authentication code: 1152

How can I determine the visual, background color?

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

What is your ImageMagick version and platform/OS? Post some example images.
Post Reply