check image for exact color with linux terminal

0

How can I check to see if an RGB tiff has a specific color?

checkimg example.tif -color "0 255 0"

The images are 8k x 8k pixels.

I tried the following, but I stopped it at 600mb size. Was going to scan the output, but that seems to be too much processing.

convert example.tif out.txt

Caleb Pitman

Posted 2019-04-05T21:14:12.357

Reputation: 113

The XPM format is text (C source code) and starts with a color map, so you could restrict your search to the color map only. However, IM's convert seems to coerce the image into a 256-color colormap (while Gimp will produce a 100K-colors map if necessary). – xenoid – 2019-04-05T22:27:34.457

No answers