0

I'm using Google App Engine and using get_serving_url to get a URL which I can append on to perform resizes and cropping. I'd like to be able to crop a square out of an image, but to also control what part of the image the crop is coming from, like passing in x/y values/

I've seen an unofficial list of options. I tried using the x/y/z options but they did not work and I'm not sure how to get them to. I don't see why GAE Image API wouldn't be able to handle this.

Erik J
  • 828
  • 9
  • 22

1 Answers1

0

From the oficial documentation of Images Python API there is no parameters to specify the x,y for the crop transformation when using get_serving_url() method.

But if you use the crop method of Image() class, it accepts 4 parameters:

crop(left_x, top_y, right_x, bottom_y)

Check the documentation here.

Notice that this is for Python API for App Engine Standard.