October 2015
Intermediate to advanced
368 pages
8h 49m
English
Just because it is useful to some extent, we are going to talk about the image processing capabilities that are available to you on Google App Engine. They might not be as sophisticated as you'd expect from other image processing libraries in other languages, but they are still good enough for most common cases in web applications.
The entire functionality resides in the google.appengine.api.images module. The main class here is Image, which can be initialized with raw binary data like this:
image = Image(image_data=data) where data can be from a file or from request like this: class ImageResize(webapp2.RequestHandler): def post(self): # photo is an <input type='file'> from HTML request photo = self.request.params.get('photo') # photo is ...Read now
Unlock full access