开发者

Converting BMP to Grey Scale in Image Module Python

开发者 https://www.devze.com 2022-12-27 06:03 出处:网络
I was wondering how I ca开发者_运维知识库n convert BMPs to a grey scale using Image Module of 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

精彩评论

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