I've succeded changing png images colors in Chrome and Firefox with CSS3.
My code:
#second_image{
-webkit-filter: hue-rotate(59deg);
filter: hue-rotate(59deg);
}
<img src='http://i.imgur.com/uGjlkRz.png' />
<img id='second_image' src='http://i.imgur.com/uGjlkRz.png' />
See also this Fiddle.
My problem is that I don't know how to do the same thing in Internet Explorer. At least from v9 up of IE. Is it even possible? I accept even JavaScript or jQuery solutions or some sort of ideas.
each browser have one kind of engine, so, try use it, probably will work in all browsers
http://labs.voronianski.com/css3-grayscale/
I'm afraid this is not possible in any version of Internet Explorer.
Here's an overview of which browsers have support for CSS Filters at the moment I'm writing this post (March 25th, 2016) :
For an up-to-date overview, take a look at CanIUse.
While there IS a polyfill for CSS filters, it has no support for IE 10+, older Presto-based Operas, Opera Mini or Android browser.
Also, there's only support for the following filters :
Alternative approach
One possible workaround would be to use a backend language like PHP to process your file.
Consider an
index.php
file with the following code :If you put that file at a server that supports PHP, you could use it like this: