<div>According the pil manual it handles PGM files with "'1', 'L', or 'RGB' data" which leads me to believe 16bit data is not supported. </div><div><br></div><div>You CAN write your own decoder for that though:</div>
<div><a href="http://www.pythonware.com/library/pil/handbook/decoder.htm">http://www.pythonware.com/library/pil/handbook/decoder.htm</a></div><div><br></div><div>It would be trivial to write a decoder for the pgm format.</div>
<div><br></div><div><br></div><div><div class="gmail_quote">On Mon, Feb 8, 2010 at 4:47 PM, Davo <span dir="ltr"><<a href="mailto:davodavo2@gmail.com">davodavo2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a PGM format image file with 4096 range.  When I reads it with<br>
PIL, I get an image with 8-bit values and alternate columns are zero.<br>
Does PIL support reading and writing PGM's with more than 8-bits?<br>
<br>
Davo<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br></div>