How to test whether an image is color or black and white.
We are testing an app written in Qt.
I'm using Squish for automated testing and coding my tests in Python.
I have a page which displays a list of thumbnails of images taken by a medical scanner. These thumbnails can be either color or grayscale and I need to test that the grayscale images contain no color pixels in them and that the color ones are actually in color.
Is there a simple way to test these images using Squish/Python? Or do I need to use PIL (Python Image Libraries) to do this.
If I DO need to use PIL, how do I go about integrating it with Squish and Python.
Many thanks, in advance.