[Image-SIG] Re: Re: 16bit PNG read/write supported ?

Fredrik Lundh fredrik@pythonware.com
Thu, 8 May 2003 23:29:24 +0200

Sebastian Haase wrote:

> That PIL reads 16bit PNG is nice to hear! Can it also
> _write_ 16bit PNG ?

that's what my example tried to illustrate (it created an
image with 16-bit values in it, saved it, and read it back).

> And since I have VERY large images I probably would need to have them loaded
> to / written from "unsigned short" arrays instead of "signed long".
> Does it make sence for me to look into the PIL source code  and where can I
> get it ?


> Which _file_ should I  look at?

start by tweaking the _MODES and _OUTMODES tables in