Python PIL | Image.split() method Last Updated : 21 Jun, 2019 Comments Improve Suggest changes Like Article Like Report PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. Image.split() method is used to split the image into individual bands. This method returns a tuple of individual image bands from an image. Splitting an “RGB” image creates three new images each containing a copy of one of the original bands (red, green, blue). Syntax: var = Image.Image.split(image_object) OR var = Image.Image.split(path_of_image) Return Value: It returns a tuple containing bands. Code #1: Python3 # importing Image class from PIL package from PIL import Image # opening a multiband image (RGB specifically) im = Image.open(r"C:\Users\Admin\Pictures\network.png") # split() method # this will split the image in individual bands # and return a tuple im1 = Image.Image.split(im) # showing each band im1[0].show() im1[1].show() im1[2].show() Output: Code #2: Python3 # importing Image class from PIL package from PIL import Image # opening a singleband image im = Image.open(r"C:\Users\Admin\Pictures\singleband.png") # split() method # this will split the image in individual bands # and return a tuple (of 1 element for singleband) im1 = Image.Image.split(im) # showing image im1[0].show() Output: Images Used: Comment More infoAdvertise with us Next Article Python PIL | Image.split() method S sanjeev2552 Follow Improve Article Tags : Python Image-Processing python-utility Practice Tags : python Similar Reads Python PIL | Image.show() method PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. 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, 1 min read Python PIL | Image.seek() Method PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. 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, 1 min read Python PIL | Image.resize() method PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. 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, 4 min read Python PIL | Image.save() method PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. 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, 3 min read Python PIL | Image.transpose() method PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. 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, 2 min read Like