get size of image linux 1

get size of image linux

$ identify color.jpg 
> color.jpg JPEG 1980x650 1980x650+0+0 8-bit DirectClass 231KB 0.000u 0:00.000

Here is what the above code is Doing:
1. We import the Image class from the PIL module.
2. We create an Image object and assign it to a variable.
3. We call the show() method on our Image object.
4. We call the save() method on our Image object.
5. We call the identify() method on our Image object.

Similar Posts