|
List Info
Thread: PIL throws exception when reading 8bit greyscale bitmap and pnm data
|
|
| PIL throws exception when reading 8bit
greyscale bitmap and pnm data |

|
2006-12-03 12:34:20 |
|
Fredrik Lundh wrote:
sea.gmane.org" type="cite">
Fredrik Lundh wrote:
can you try changing the except clause around line 153 from
here's an "official" patch:
Index: PIL/ImageFile.py
===================================================================
--- PIL/ImageFile.py (revision 2929)
+++ PIL/ImageFile.py (working copy)
 -149,7 +149,7 
self.map, self.size, d, e, o, a
)
readonly = 1
- except (AttributeError, IOError, ImportError):
+ except (AttributeError, EnvironmentError, ImportError):
self.map = None
self.load_prepare()
_______________________________________________
Image-SIG maillist - python.org">Image-SIG python.org
http://mail.python.org/mailman/listinfo/image-sig
Hi Fredrik,
I'd like to confirm that the patch does indeed work, and I can access
and read the data as expected.
Thanks and best regards,
Cameron.
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|