I need the best way to manipulate with image in web browser with javascript. How create script which will change brightness or contrast. I google a little but i can find any acceptable solution.
+1
A:
This is not possible with javascript. You need to use GDLib or some other server side image manipulation library.
Rook
2010-02-05 22:19:41
That's not correct actually, there is a lot of jquery plugins that allow you to manipulate images. In fact there is simple photo editors in jquery
anthares
2010-02-05 22:23:19
It is possible. You can manipulate images easily using canvas element. Though it's not cross browser solution. But you can work around even that using iecanvas.
Maiku Mori
2010-02-05 22:23:53
I didn't know you could do that, pretty cool. Too bad it doesn't work with IE.
Rook
2010-02-05 22:47:48
A:
Google a little bit more. You must do this server side and ajax the results to the browser.
Byron Whitlock
2010-02-05 22:20:47
Note that this depends on a modern browser that supports the <canvas> tag.
Mystic
2010-02-05 22:28:13
+2
A:
If your audience have modern browsers you can use the <canvas>
tag.
Here is a tutorial: https://developer.mozilla.org/en/Canvas_tutorial
Mic
2010-02-05 22:23:04
A:
I'd say your best option here is to use something like flash, java, etc. JavaScript MIGHT be able to do this, but it will never be able to do it WELL. It is better to use a technology that has the power to do what you are asking without being stretched to it's limit.
Joe Mills
2010-02-05 22:26:12