I am on OS X snow leopard and trying to create an app with python. I
did get PIL installed without any errors it seems. I used to get the
PIL is not installed error but now after trying to resize several
images from a form that I am uploading and trying to store in the
datastore I am at a lose as to why I am getting the following
BadImageError

Error That I am getting : ( like I said I tried several different
images. some png and some jpg and get the same error)

Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/webapp/__init__.py", line 513, in __call__
    handler.post(*groups)
  File "/Users/mswallace/Development/webapps/nobluelego/main.py", line
48, in post
    screen_shot =
db.Blob(images.resize(self.request.get('screen_shot'),320,240)),
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-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/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/images/__init__.py", line 523, in
execute_transforms
    raise BadImageError()
BadImageError

Here is the code that I am running when user submits the form with the
image file to upload

def post(self):


                sitePosts = SitePosts(
                  screen_shot =
db.Blob(images.resize(self.request.get('screen_shot'),320,240)),
                  url=self.request.get('url'),
                  site_name=self.request.get('site_name'),
                  your_name=self.request.get('your_name'),
                  your_email=self.request.get('your_email'),
                  your_site=self.request.get('your_site')
                  )

                sitePosts.put()
                self.redirect('/')

any help would be great
thanks

-- 
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