mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-30 15:31:07 +00:00
.. | ||
bw_convert.py | ||
README.md | ||
requirements.txt | ||
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
$python bw_convert.py sample_image.png