flâneur — a map of the web's best reading

Image Module — Pillow (PIL Fork) 9.0.1 documentation

pillow.readthedocs.io · 10,364 words · saved by 1 readers

The 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, a...

Image module ¶ The 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. Examples ¶ Open, rotate, and display an image (using the default viewer) ¶ The following script loads an image, rotates it 45 degrees, and displays it using an external viewer (usually xv on Unix, and the Paint program on Windows). from PIL import Image with Image . open ( "hopper.jpg" ) as im : im . rotate ( 45 ) . show () Create thumbnails ¶ The following scr

Explore this link on the map →

related reading