Given a color image, is there a styling you could apply to the image tag to make it look black and white in the browser? I've seen IE only solutions which is surprising :) Usually it's the opposite.
Any ideas? Thanks
Given a color image, is there a styling you could apply to the image tag to make it look black and white in the browser? I've seen IE only solutions which is surprising :) Usually it's the opposite.
Any ideas? Thanks
The reason you've only seen IE solutions is because it's not part of CSS. IE - as always - decided to go their own way and add a bunch of non standard filters :)
If you can use HTML 5, you can use the canvas tag and do something like this: http://spyrestudios.com/html5-canvas-image-effects-black-white/
Otherwise, you're probably out of luck.
For a pure jQuery solution, there is a plugin called Image Desaturate.
Otherwise, check out Desaturate Images Using Javascript and the Pixastic library for Desaturate.
I found these quickly via a simple Google search for "javascript desaturate
" and "javascript desaturate jquery
."