None of the above helped because the images are colour images... the black and white images just don't use most of the spectrum.
I did figure something out though.
convert black_white_test1.png -colorspace gray black_white_test1-grey.png
compare -metric FUZZ black_white_test1.png black_white_test1-grey.png null 2>&1 3>&1 | awk '{print $1}'
Basically if you get a really low number like 0 it's black and white as nothing changed when it was converted to black and white.
|