Skip to content
Reticux Engineering by Reticux Engineering

Python code for converting colored image to black and white

Reticux Engineering —
Python code for converting colored image to black and white

Libraries used: PIL for python
IDE Used: Spyder
Tutorial video link: Click Here

https://knowledgestreams.blogspot.com/

knowledge streams blog spot dot com free knowledge blog. download free source codes for python and java and other free stuff.


from PIL import Image
open_image = Image.open("adress of the pictures")
open_image.show()
convert_to_blackandwhite= open_image.convert("L")
convert_to_blackandwhite.show()






knowledge streams blog spot dot com free knowledge blog. download free source codes for python and java and other free stuff.


Q: How to Install PIL??

A1: pip install PIL
A2: pip install pillow

#Python #beginner #source_code #image #convert
Written by Reticux Engineering

Practical, lab-tested network engineering: Cisco, Juniper and Fortinet configurations, troubleshooting steps and exam-focused practice.

Learn BGP, Cisco routing and network security with daily lab-driven lessons, from CCNA basics to CCNP level policy design.