#60 PNG Load failures on valid PNGs

OpenGLContext v2.0
closed-fixed
Context (22)
4
2003-05-25
2003-01-30
Mike C. Fletcher
No

Large numbers of PNGs from known-readable content is
failing, seems like PIL is just getting confused by
either too many or too few \000s in a string:

File
"C:\bin\lang\py22\lib\site-packages\PIL\PngImagePlugin.py",
line 209, in chunk_tEXt
[k, v] = string.split(s, "\0")
ValueError: unpack list of wrong size

Should figure out what's causing that.

Discussion

    • status: open --> open-postponed
     
  • Logged In: YES
    user_id=34901

    This appears to be a bug in PIL. For now, I've worked
    around it by using the Image.open() function, instead of
    loading images from the file and then closing the file.
    That means the image-file is going to be locked as long as
    the context is rendering, which isn't delightful, but does
    allow the content to load and render properly.

     
  • Logged In: YES
    user_id=34901

    Fixed in the latest version of PIL.

     
    • status: open-postponed --> closed-fixed