I was wondering if there is a way to change an image color scale in JavaScript
? Say you want to make it warmer or cooler depending upon the user's input. If there is a way in jquery or html5 that would be fine as well. Anyone know how to accomplish something like this?
Asked
Active
Viewed 315 times
1

Izzy
- 6,740
- 7
- 40
- 84

FairyQueen
- 2,283
- 7
- 37
- 57
-
You should look into html5 canvas. An easy trick is to modify the opacity. – frenchie Apr 15 '12 at 01:15
-
1With canvas you could change each pixels color value according to some rules. It's certainly possible. There also seems to be SVG solutions: http://stackoverflow.com/questions/609273/convert-an-image-to-grayscale-in-html-css – Felix Kling Apr 15 '12 at 01:17
-
Try to do google, Do your work, analyse what went wrong perhaps have the issue and post it in SO. and I request you to read the SO Terms. – iDroid Apr 15 '12 at 01:22
-
@Dustin: Downvoting questions does not cost any rep... – Felix Kling Apr 15 '12 at 01:44
-
@DustinGraham You don't lose rep for downvoting questions. – simchona Apr 15 '12 at 01:44
-
Thanks for the reminder. I do remember reading that now. – Dustin Graham Apr 15 '12 at 01:51
3 Answers
0
Maybe not in jquery itself but there is very cool js library for manipulating images called pixastic
.
http://www.pixastic.com/
Try to search documentation for option you need exactly.

shark555
- 2,562
- 1
- 20
- 10
0
My guess is you want to change the saturation. I tried Pixastic but it's broken in my browsers, Chrome, Opera and IE7.
Caman JS looks like it delivers, at least judging from the demo page

Tina CG Hoehr
- 6,721
- 6
- 44
- 57