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.
- Pillow (PIL)
$pip install Pillow
- Go to the script's folder and open command prompt.
- Run command :
$python bw_convert.py <image_file_name>
$python bw_convert.py sample_image.jpg