Converting BMP to Grey Scale in Image Module Python
I was wondering how I ca开发者_运维知识库n convert BMPs to a grey scale using Image Module of Python? Thanks
Greyscale image mode is 'L'
.
>>> import Image
>>> Image.open('input.bmp').convert('L').save('output.bmp')
精彩评论