How to find the mode and type of an image in PIL

How to find the mode and type of an image in PIL (Pillow)

In this article, you’ll see how to find the mode and type of an image in the PIL module. You just have to change the name and location of the image. Output: RGB <class ‘PIL.JpegImagePlugin.JpegImageFile’> Recommendation: Computer Vision: Models, Learning, and Inference Book