title: How to check whether a jpeg image is color or gray scale using only Python stdlib
body: <p>I have to write a test case in python to check whether a jpg image is in color or grayscale. Can anyone please let me know if there is any way to do it with out installing extra libraries like opencv?</p>