Thanks for the fast reply. I think this confirms my thinking. What I was looking for some way to do multiple resize transforms in single call. Something like this:
img = images.Image(full_size) img.resize(width=80, height=80) img.resize(width=160, height=160) photos = img.execute_transforms(output_encoding=images.JPEG) where photos would then be dict, array or the like. dgd On Apr 16, 9:47 am, 风笑雪 <[email protected]> wrote: > You can do multiple different transformations for one picture, then > call execute_transforms > to apply your changes.This code is from Google's document: > > img = images.Image(photo.full_size_image) > img.resize(width=80, height=100) > img.im_feeling_lucky() > thumbnail = img.execute_transforms(output_encoding=images.JPEG) > > There is no way to transform multiple pictures in a single API call, but you > can do this: > pictures = [resize(picture, 32, 32) for picture in pictures] > > 2009/4/16 Dave <[email protected]> > > > > > I'm wondering if multiple resize transformations can be performed in a > > single API call? Or does this mean multiple different transformations > > (i.e. resize and getlucky) can be done in a single call? > > > If multiple resizes (i.e. create thumbnail AND medium size) any > > examples of how to do it would be appreciated. > > > thx, > > > Dave > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
