Google Gears will include Image manipulation API

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()

via Buzz Corner, Source

Enter your email address to subscribe our newsletter or feed for FREE:

Delivered by FeedBurner

Bookmark with:

[Delicious]    [Digg]    [Reddit]    [Facebook]    [StumbleUpon]

0 Responses to “Google Gears will include Image manipulation API”

  1. No Comments

Leave a Reply

You must login to post a comment.