[Image-SIG] PPM comments reading/saving in PIL

Ran Roth ranroth at gmail.com
Tue Mar 13 14:27:51 CET 2007


Hi,

I have changed the PPM reading of PIL (the file PpmImagePlugin.py) so
that it would read and write comments in the PPM header (starting with
"#" in the beginning of the file).

Attached is my modified version of this file (I work with the latest
1.1.6 version) which is capable of loading and saving PPM comments.

I think it would be beneficial to apply this change to future versions of PIL.

Thanks,
Ran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PpmImagePlugin.py
Type: text/x-python
Size: 3550 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20070313/b332afa9/attachment.py 


More information about the Image-SIG mailing list