Skip to content

Baylex/TW_Bernie_Sanders_Converting_Images

Repository files navigation

Converting Images

Purpose and Process

Transformation Waco needed a greyscaled logo to match with other logos for a communication project. I searched for a popular image to use for practice and landed on using the Bernie Sanders meme.

Using PIL library to convert images

I used the PIL library in python and jupyter notebook.
Research showed that PIL is being retired and will soon be changed to PILLOW in future updates.

Finding an Original Image:

Image Source: https://en.wikipedia.org/wiki/Bernie_Sanders_mittens_meme

Bernie Sanders Image Meme used for the Original Image

Pic 1

Greyscale Python Code

Pic 2

Result for Greyscale Image

Pic 3

Converting to Greyscale, then converting to Black and White for a Monochrome image Using L

Pic 4

Result for a Monochrome image

Pic 5

Future Research:

Using PIL for image classification: https://huggingface.co/google/vit-base-patch16-224

About

Using PIL (PILLOW) to convert images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published