Process Images Using the Pillow Library and Python (Summary)
You’ve learned how to use Pillow to deal with images and perform image processing. If you’ve enjoyed working with images, you may want to dive headlong into the world of image processing. There’s a lot more to learn about the theory and practice of image processing. A good starting point is Digital Image Processing by Gonzalez and Woods, which is the classic textbook in this field.
Pillow isn’t the only library that you can use in Python for image processing. If your aim is to perform some basic processing, then the techniques that you learned in this tutorial may be all you need. If you want to go deeper into more advanced image processing techniques, such as for machine learning and computer vision applications, then you can use Pillow as a stepping stone to other libraries such as OpenCV and scikit-image.
In this video course, you’ve learned how to:
- Read images with Pillow
- Perform basic image manipulation operations
- Use Pillow for image processing
- Use NumPy with Pillow for further processing
- Create animations using Pillow
Now, look through the images in the image folder on your computer and pick a few that you can read in as images using Pillow, decide how you’d like to process these images, and then perform some image processing on them. Have fun!
For further investigation, check out:
- 📰 Pillow documentation
- 📰 NumPy Tutorial: Your First Steps Into Data Science in Python
- 📰 Draw the Mandelbrot Set in Python
- 📰 Three Ways of Storing and Accessing Lots of Images in Python
- 📰 Generate Images With DALL·E 2 and the OpenAI API
- 📰 Build Your Own Face Recognition Tool With Python
- 📰 Image Segmentation Using Color Spaces in OpenCV + Python
- 🎧 The Real Python Podcast Episode 45: Processing Images in Python With Pillow
- 🎧 The Real Python Podcast Episode 106: Class Constructors & Pythonic Image Processing
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 Summary. Well done, you’ve made it to the end of the course. You’ve learned how to use Pillow to deal with images and perform image processing. In this course, you’ve learned how to read images with Pillow, perform basic image manipulation operations, use Pillow for image processing, use NumPy with Pillow for further processing, and create animations using NumPy and Pillow. For further experimentation, look through the images on your computer and pick a few that you can read in using Pillow, decide how you’d like to process them, and then perform some image processing on them.
00:40 We hope you found this course useful, and we’ll see you again soon at realpython.com.
Bartosz Zaczyński RP Team on Aug. 16, 2023
@Jon Nyquist Glad that you found a work around! Note that this course is based on a written tutorial, which links the images. You can also find them in the corresponding GitHub repository.
Become a Member to join the conversation.
Jon Nyquist on Aug. 15, 2023
Nice Course! I saw the code and slides in the supporting material, but not the images, so I just screen-captured them.