[Image-SIG] How to store image as black&white bmp (1-bit colorscheme)?

Alexander Belchenko bialix at ukr.net
Mon Feb 20 13:14:18 CET 2006


Fredrik Lundh пишет:
> like most PIL methods, convert returns the converted image.  try changing
> your code to:
> 
>     im = im.convert('1')
>     im.save('file-1bit.bmp')

Oh. My fault.
Thank you. It's works as expected.

--
Alexander



More information about the Image-SIG mailing list