SyntaxFix
Write A Post
Hire A Developer
Questions
The fastest and current way is to use Pillow, installed via pip install Pillow.
pip install Pillow
The code is then:
from PIL import Image img = Image.open('input_file.jpg').convert('L') img.save('output_file.jpg')