Import an image module

Setting up the project

To do fun stuff with images, we need to unlock some useful functions. To get these functions, we need to import a module. In this case, if we import the module Pillow, we can use some functions that will help us modify images.

First, let’s delete everything in the file. Then, add the following statements:

    from PIL import Image
    from PIL import ImageFilter

Once you hit run, you should see the module being installed in the console:

alt text

If you see the above, it means you have successfully imported a module! If you’re hitting issues, please ask for help before moving on.

If you’re curious to see what functions there are in the Pillow Image module, you find information about it here: