Exercise to covert an image to its grayscale equivalent. Replace the question marks in grayScale.py with the correct code.
Stuck? Example Solution are in grayScale.py
Run the program as follows
-
pip install pillow -
git clone https://github.com/icodecamp/module4_imageProcessing.git -
cd module4_imageProcessing -
Replace all ??? in the transfrom_image() in transformImage.py with the correct code.
-
python transformImage.py -
Enter path of the desired image (i.e
pikachu.png) -
Enter path of the new image (i.e
gray_pikachu.png) -
Look at your new image by
open gray_pikachu.png -
Change the code again to tranform your image into new colors.