[Image-SIG] fromstring image question
Fredrik Lundh
fredrik at pythonware.com
Thu Oct 4 22:04:35 CEST 2007
joperry at purdue.edu wrote:
> I am having difficulty using the Image.fromstring(args) command. My data is
> little endian 16 bit unsigned int. When I try to use the correct decoder "F;16"
> idle fails. Here is an example:
>
> img2=Image.fromstring("L",(512,512), buffed, "raw", "F;16")
the image mode must match the raw mode type; "F;16" expects 16-bit
integers on input, and wants to store the result in a floating point
image. try using "L;16" instead, or change the image mode to "F".
</F>
More information about the Image-SIG
mailing list