To do this cross-browser will probably be difficult, especially with
older browsers. Fallback can be to upload the image to the server and
do everything server-side if it can't be done client-side.

If you're ok with the fact that it will only work in recent browsers,
I'd go for the solution suggested on the stackoverflow page to obtain
the image data, and then render it in a canvas. Once the image is in
the canvas, you can access pixels and manipulate the image as you
want. When you're done, get the data url from the canvas and send it
to the server.

BR,
Wim.

2011/5/17 John Robson <[email protected]>:
> I dont know if this is possible.
>
> see:
>
> http://pixlr.com/editor/
>
> http://www.webresourcesdepot.com/jquery-image-crop-plugin-jcrop/
>
> http://stackoverflow.com/questions/4459379/preview-before-upload-image
>
>
> On 05/16/2011 05:38 PM, Mehmet Erkanar wrote:
>> Hi,
>>
>> I searched about processing files before uploading them through the 
>> discussions,
>> but I could not find any result.
>> Would you kindly propose a way to process files on the client side before
>> uploading. I work on WFileUpload to upload image files.
>>
>> Best Regards,
>> Mehmet
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to