Convert BMP grayscale to Python image module

I was wondering how can I convert BMP to series using Image Module Python? Thanks

+3
source share
1 answer

Grayscale picture mode 'L'.

>>> import Image
>>> Image.open('input.bmp').convert('L').save('output.bmp')
+4
source

Source: https://habr.com/ru/post/1740957/


All Articles