I am looking for a method for detecting if an image contains only black pixels. When I say method I mean an existing command line tool. I could write up something myself but I'm sure something probably exists already.

  • Do you want to detect exact black pictures RGB(0,0,0), or also dark pictures like ones with too short exposure? Commented Sep 13, 2014 at 17:05

1 Answer 1


I bet that Imagemagick is what you want. In fact, there's an Imagemagick forum entry that probably fits your needs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .