Google Gears will have a set of API for manipulating images. Such as cropping, resizing and composing images etc on the client-side using JavaScript.
For example, images can resized on the browsers first to a web friendly format before uploading to web server etc. Buidling a drag and drop tool allows users to crop, resize image on the fly on the browser is possible. Or building web client app that lets users to edit their photos before uploading to servers etc.
The few methods and usage as follows:
var image = google.gears.factory.create(’beta.image’, ‘1.0′);
void open(blob)
Blob blob(type)
void resize(width, height)
void crop(x, y, width, height)
int width()
int height()
void rotate(degrees)
void flipHorizontal()
void flipVertical()
void drawImage(image, x, y)
void close()
target=_new>via Buzz Corner, Source
0 Responses to “Google Gears will include Image manipulation API”