开发者

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')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜