views:

112

answers:

3

Is it possible to work with client chosen images on client PC without uploading image to server.

If yes, what web programming language can do that?

+2  A: 

This can only be done with Flash, Silverlight or a custom Plugin/ActiveX depending on the target browser.

ichiban
So flash allows to edit image directly on user machine?If it's true, then thanks a lot. I'll look into it. :)
Beck
A: 

You can use silverlight

DkAngelito
+1  A: 

This can also be done with javascript libraries like jQuery, MooTools, Prototype and script.aculo.us:

http://www.bitrepository.com/image-cropping-with-jquery-mootools-prototype-scriptaculous.html

Andrew B.
As far as I know, while the cropping is arranged through a client side UI, the image has to be uploaded to the server first. The JS is just sending the coordinates to the server, and the server crops and scales. So, this doesn't fit the requirements of the question since the image must be uploaded first.
Cole
Actually, if you use HTML5 you can directly manipulate the raw pixel data in-the-browser. See, for example: https://developer.mozilla.org/En/HTML/Canvas/Pixel_manipulation_with_canvas
Andrew B.
@Cole You can access local files using javascript. For example: reading a file using HTML5, http://www.html5rocks.com/tutorials/file/dndfiles/#toc-reading-files , or running your javascript locally, like tiddlywiki does http://www.tiddlywiki.com/
Andrew B.
Okay, it will be possible once all the browsers support Canvas and HTML5, but the projects on the page you linked to don't work in that way. . I've built an image upload system using imgAreaSelect. The actual scaling is taken care of on the server side, using gd/imagemagick. T
Cole
@Cole Just minor points, but it is possible in any browser that supports HTML5 canvas, which currently includes the latest versions of Firefox, Safari, and Chrome. Also, it is still possible to manipulate the image data if you load the page from a local computer, though not true crop/resize.
Andrew B.