Image
module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to create new images.PIL.Image.open()
Opens and identifies the given image file.from PIL import Image # open method used to open different extension image file im = Image. open (r 'C:UsersSystem-PcDesktopybear.jpg' ) # This method will show image in any image viewer |
from PIL import Image # open method used to open different extension image file im = Image. open (r 'C:UsersSystem-PcDesktoplion.png' ) # This method will show image in any image viewer |