VOOZH about

URL: https://www.geeksforgeeks.org/python/python-pil-image-split-method/

⇱ Python PIL | Image.split() method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python PIL | Image.split() method

Last Updated : 21 Jun, 2019
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: Output: 👁 Image
👁 Image
👁 Image
Code #2:
Output: 👁 Image
Images Used: 👁 Image
👁 Image
Comment
Article Tags: