ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
[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.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved