# Open an image

To change an image, we must open an image. We can use the Pillow Image module we just imported in the setup. Let’s first find some images to open. Find an image of your choice and download it. Once you have downloaded it, navigate back to your Replit window and upload your image by clicking on the three dots and selecting ‘upload file’.

For example, to upload the cat.jpg file:

You should see the JPG file on the left side once you’ve uploaded it. Note, your image may have a different extension.

Next step is to open that image within code. There are functions within the Pillow Image module we imported that allow us to do this.

    image = Image.open("cat.jpg")