Crop

Action crop
Method GET
Parameters

key (text): Your private appspotimage key

img_id (text): A unique name to identify the image

new_img_id (text): A unique name to identify the modified image1

left_x (float): Left border of the bounding box, as a proportion of the image width specified as a float value from 0.0 to 1.0 (inclusive)

topy_y (float): Top border of the bounding box, as a proportion of the image height specified as a float value from 0.0 to 1.0 (inclusive)

right_x (float): The right border of the bounding box, as a proportion of the image width specified as a float value from 0.0 to 1.0 (inclusive)

bottom_y (float): The bottom border of the bounding box, as a proportion of the image height specified as a float value from 0.0 to 1.0 (inclusive)

output_encoding (JPEG\PNG): Encoding with which the new image is generated

Result

Url of the stored image

Error (see Results)

Example Request:


        http://imagetweaker.appspot.com/crop?key=3scale-d54a9fc683b4478db987af955766bd7c&img_id=ex1&new_img_id=ex2&left_x=0.1&topy_y=0.1&right_x=0.5&bottom_y=0.5&output_encoding=PNG

Response:


         http://imagetweaker.appspot.com/image/agxpbWFnZXR3ZWFrZXJyDgsSB1BpY3R1cmUY8AcM

Resultant Image:

1 The effect of using an existing identifier is the replacement of the previous image in the system
Functions