views:

46

answers:

4

Is it possible to edit images using a javascript library and then send the edited image to the server for saving.
Edits will be in real time, means the user can see the edit result in the same time he is editing without the need to refresh the page.

I want a javascript library to do some edits on an image on a webpage 'such as crop, resize, rotate,...' and send send the edited result to the server.

How this can be done or if there any smart work around to something like this.

A: 

jcrop is what you are looking for .

jmhowwala
but this is just for croping, i will need some other edits, such as resize and rotate.
Amr ElGarhy
A: 

Pixastic is an image manipulation library; once you've modified the image, some sort of post back / upload call from the script will be able to upload the image provided you've implemented the needed functionality to do so.

John Weldon
A: 

An incomplete list to be sure, but these are two that come to mind which allow you do a wide variety of editing on the client side and push back to the server.

And there are numerous less complete image editing tools for simply cropping or adjusting contrast as well.

Chadwick
+1  A: 

The libraries mentioned don't seem to be fully cross browser. As far as I know there is no fully cross browser compliant way to edit pixel data on the client.

The current best approach would be to do these manipulations on the server. You can still do this real time using a web service.

As an example see the image editor in TinyMCE which supports crop, rotate, resize, flip, all from the client without a page refresh.

James Gaunt