![]() Image.mode – This function is used to get the pixel format of the image like RGB, RGBA, CMYK, etc.Image.format – This function is used to get the file format of the image like JPEG/JPG, PNG, GIF, etc.If the image is not opened using ‘open()’ function it returns the null string. Image.filename – This function is used to get the file name or the path of the image.So, we will be discussing only the required functions that we are going to use afterward in our code. There are many functions that are supported by the Image Module for Image Processing, it is not possible to discuss each and every function in detail here. While working in the Image Processing domain more often you need to work with image data, therefore it is essential to know how to retrieve the required information from an input image, and even though you not doing Image Processing it always good to know something about a field instead of nothing. In this library, there are many modules but we will be using only the ‘Image’ module because it contains all the functions that are required for retrieving the information from an image. ![]() In this tutorial, we are going to learn how to get the basic information about an image using Python Imaging Library(PIL) i.e also known as ‘Pillow’.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |