Skip to content

Pillow

Install

pip install pillow

Usage

Import

import PIL
from PIL import Image

Open Image

from PIL import Image

im = Image.open("kittens.jpg")
im.show()
print(im.format, im.size, im.mode)
# JPEG (1920, 1357) RGB