[Image-SIG] Does PIL support PPM files with 32-bit MaxColor value?
by Zachar Desiatnik other posts by this author
Nov 4 2009 2:23PM messages near this date
[Image-SIG] PIL fails to load BMP version 4
|
[Image-SIG] PIL 1.1.6 ImageFile.Parser destroys data for PngImagePlugin
Hi,
I'm new PIL user. I wanted utilize it in the PPM image comparison. I found the PIL usable fo
r our needs and wanted to distribute it for our needs. I have the PPM image with 0xFFFF Maxv
al (maximum color value). The object of the Image class loaded my PPM without any complain.
But after I saved it back on the dick I was surprised that the Maxval of saved image was of
256 (0xFF) value.
I started to debug the load procedure and found that PpmImageFile._open from PpmImagePlugin
method just ignores the Maxval parameter.
Q: Do I have some alternative to load and process the PPM image with 32-bit Maxval?
Thank you in advance.
Zachar
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
|