Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 27, 2021 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/a18897f969fc202efd3708c9d0f277cb to your computer and use it in GitHub Desktop.
Save amankharwal/a18897f969fc202efd3708c9d0f277cb to your computer and use it in GitHub Desktop.
# Reading an image using PIL
from PIL import Image
from numpy.lib.type_check import imag
image = Image.open('aman.png')
print(image.format)
print(image.size)
image.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment