mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-12-18 00:00:14 +00:00
.. | ||
bw_convert.py | ||
README.md | ||
sample_image.jpg |
Colored Image to Black & White Image Converter
A simple python script which takes colored image filename as argument and converts it into grayscale image and saves the output image file. It shows the basic usage of Pillow library.
Libraries Required
- Pillow (PIL)
$pip install Pillow
Usage
- Go to the script's folder and open command prompt.
- Run command :
$python bw_convert.py <image_file_name>
Example
$python bw_convert.py sample_image.jpg