Re: PIL Image.fromarray( ... , mode=1 )

2014-02-12 Thread xstgavin124
On Saturday, 31 October 2009 23:43:45 UTC+8, Hans Georg Schaathun wrote: Does anyone know how to save two-tone images represented as numpy arrays? I handle grayscale images by converting to PIL Image objects (mode=L) and then use the PIL save method, but I cannot make this work with mode=1.

PIL Image.fromarray( ... , mode=1 )

2009-10-31 Thread Hans Georg Schaathun
Does anyone know how to save two-tone images represented as numpy arrays? I handle grayscale images by converting to PIL Image objects (mode=L) and then use the PIL save method, but I cannot make this work with mode=1. I have tried both boolean arrays and uint8 arrays (mod 2). In both cases I