Python Image Library Hierarchy



Image module is the fundamental module which has to be imported to the program for manipulating a image.
Pillow is a fork of PIL which means that PIL is renamed as Pillow for further developments. We dont have any library named with Pillow.
Going forward we will be using same PIL library but will be importing the required module from PIL.

In PIL Image module can be loaded directly.

import Image
In PIL Image module can be loaded directly.
from PIL import Image

Below is the complete list of modules which are included in Pillow Library. Coming forward we are going to study most of the important modules and all its methods that are frequently used.


Module Description Syntax
Image Fundamental class containing functions to load images from files and to create new images. from PIL import Image
ImageColor Module contains functions used in color conversions from PIL import ImageColor
ImageDraw Module is used for creating simple graphics on the top of image and to create new images from PIL import ImagDraw
ImageEnhance Module contains number of sub classes that can be used for image enhancements like sharpness,brightness,sharpness from PIL import ImageEnhance
ImageFile Module is used to reduce the size of the image without loss of quality from PIL import ImageFile
ImageFilter Module contains a number of pre-defined enhancement filters that can be used with the filter method. from PIL import ImageFilter
ImageFont ImageFont module contains methods which are useful for writing text on the image with the existing fonts that are available from PIL import ImageFont
ImageGrab ImageGrab module can be used to copy the contents of the screen or the clipboard to a PIL image memory. from PIL import ImageGrab
ImageMath ImageMath module can be used to evaluate image expressions. The module provides a single eval function, which takes an expression string and one or more images from PIL import ImageMath
ImageMorph ImageMorph module provides morphology operations on images. from PIL import ImageMorph
ImageOps ImageOps module contains a number of ready-made image processing operations. This module is somewhat experimental, and most operators only work on L and RGB images. from PIL import ImageOps
ImagePalette ImagePalette module contains a class of the same name to represent the color palette of palette mapped images. from PIL import ImagePalette
ImagePath ImagePath module is used to store and manipulate 2-dimensional vector data. from PIL import ImagePath
ImageQt ImageQt module contains support for creating PyQt4 or PyQt5 QImage objects from PIL images. from PIL import ImageQt
ImageSequence ImageSequence module contains a wrapper class that lets you iterate over the frames of an image sequence. from PIL import ImageSequence
ImageStat ImageStat module calculates global statistics for an image, or for a region of an image. from PIL import ImageStat
ImageTk ImageTk module contains support to create and modify Tkinter BitmapImage and PhotoImage objects from PIL images. from PIL import ImageTk
ImageWin ImageWin module contains support to create and display images on Windows. from PIL import ImageWin
PSDraw PSDraw module provides simple print support for Postscript printers. You can print text, graphics and images through this module. from PIL import PSDraw
Advertisements