I hope this is useful information for someone who has encountered
this:

If you upload an image via the blobstore that is, say, 1000x800 and
then attempt to resize using the following:

            img = images.Image(blob_key=str(blob_key))
            img.resize(1000,1000)
            image_data =
googimg.execute_transforms(output_encoding=images.JPEG)

You will find that image_data is empty. I couldn't find this behavior
documented anywhere so I assume it is a bug.

The following hack can be used if a non-empty image_data is expected:

            if len(image_data) == 0:
                image_data = blobstore.BlobReader(blob_key).read()

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

Reply via email to