Functions
The Service provides the following functionalities:
Archive (POST): To upload an image to the server. Given an image, a key and an identifier, the server stores the image, creates a thumbnail and returns a public url to access the original image.
Archive (GET): To download an image from the server. Given a key and an identifier, the server returns the image referenced.
Image retrieval from a public URL: To download an image from the server. Given the image identifier, the server returns the image referenced.
Thumbnail retrieval from a public URL: To download a thumbnail of an image from the server. Given the image identifier, the server returns the image referenced.
Resize: To resize a previously uploaded image. Given a key, size values, an identifier of the image to resize and an identifier to store the resized image, the server stores the modified image and returns a public url to access it.
Crop: To cut a previously uploaded image. Given a key, coordinates in the image, an identifier of the image to crop and an identifier to store the new image, the server stores the modified image and returns a public url to access it.
Rotate: To rotate a previously uploaded image. Given a key, a rotation degree, an identifier of the image to rotate and an identifier to store the new image, the server stores the modified image and returns a public url to access it.
Horizontal Flip: To flip horizontally a previously uploaded image. Given a key, an identifier of the image to flip and an identifier to store the new image, the server stores the modified image and returns a public url to access it.
Vertical Flip: To flip Vertically a previously uploaded image. Given a key, an identifier of the image to flip and an identifier to store the new image, the server stores the modified image and returns a public url to access it.
Colour Optimization: To optimize the colour of the image. Given a key, an identifier of the image to optimize and an identifier to store the new image, the server stores the modified image and returns a public url to access it.
When an existing identifier is used, the image is replaced in the server.
The common server address for all the functions is:
http://imagetweaker.appspot.com

