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
Interesting stuff! I installed Google Gears just based on this feature alone. So you code in JavaScript using the Google Gears API and browsers with the plugin installed are able to use these advanced features like snappy client-side image editing? Sweet!
I imagine there will be some complexity involved and I doubt this is ready for production use yet (besides, what’s the market saturation of Google Gears?). But in years to come, this may prove to be a very helpful addition to the web developer’s arsenal.