From the course: Python Essential Libraries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Pillow

Challenge: Pillow - Python Tutorial

From the course: Python Essential Libraries

Start my 1-month free trial

Challenge: Pillow

(modern music) - [Instructor] All right, you know what time it is. So now that we've seen how to use some of the different parts of the Pillow library, it's time to try a programming challenge. So in this challenge, we're going to use Pillow to take an entire folder of image files such as the ones you see here in the images archive and create a thumbnail version of each image. So, let me show you what I mean. So here in this folder, there's about 20 different kinds of images, there's JPEG, PNG, GIFs and so on. So, you can see that each one of these is a pretty full-sized image, okay? Right, fairly large images. And what I'm going to do is go to my terminal and here in my Pillow directory I'm going to run the finished version of the challenge. So let's go ahead and Python. And I'm going to run this. And we'll give that a few moments to complete. Okay, it looks like it's done. So when that script finishes, let's go back…

Contents