Have you tried upgrading your local imaging library (PIL) to 1.1.7?

http://www.pythonware.com/products/pil/#pil117
http://code.google.com/intl/pt-PT/appengine/docs/python/images/installingPIL.html

According to the CHANGES file, it's supposed to fix this issue:

"""
+ Read interlaced PNG files (from Conrado Porto Lopes Gouvêa)
"""

hth,
Nuno

On Sun, Apr 4, 2010 at 1:14 PM, kaojinz <[email protected]> wrote:
> when working local, IOError: cannot read interlaced PNG files
>
> Anyone know how to solve this?
>
>
> Traceback (most recent call last):
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngi ne-default.bundle/Contents/Resources/google_appengine/
> google/appengine/ext/ webapp/__init__.py", line 512, in __call__
>    handler.post(*groups)
>  File "/Users/user1/Documents/workspace/simcodi1/appengine/main.py",
> line 75, in post
>    item.thumbnail = db.Blob(images.resize(image, 100, 100))
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngi ne-default.bundle/Contents/Resources/google_appengine/
> google/appengine/api/ images/__init__.py", line 625, in resize
>    return image.execute_transforms(output_encoding=output_encoding)
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngi ne-default.bundle/Contents/Resources/google_appengine/
> google/appengine/api/ images.
> .
> .
> r.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/
> Resources/ google_appengine/google/appengine/api/images/
> images_stub.py", line 378, in _Resize
>    return image.resize((new_width, new_height), Image.ANTIALIAS)
>  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packa ges/PIL/Image.py", line 1256, in resize
>  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packa ges/PIL/ImageFile.py", line 155, in load
>  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packa ges/PIL/PngImagePlugin.py", line 337, in
> load_prepare
> IOError: cannot read interlaced PNG files
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to