You can apply the style through javascript. Js below.
function invert(){ document.getElementById("theImage").style.filter="invert(100%)"; }
And this is html
<img id="theImage" class="img-responsive" src="http://i.imgur.com/1H91A5Y.png"></img>
Now all you have to do is call oververt ()
function invert(){ document.getElementById("theImage").style.filter="invert(100%)"; }
<h4> Click image to invert </h4> <img id="theImage" class="img-responsive" src="http://i.imgur.com/1H91A5Y.png" onClick="invert()" ></img>
Sabba Keynejad Mar 06 '17 at 12:05 2017-03-06 12:05
source share