How do I invert colors of an image (jpg/png..) in either css if possible or javascript?
Previous related questions don\'t give enough detail.
Can be done in major new broswers using the code below
.img { -webkit-filter:invert(100%); filter:progid:DXImageTransform.Microsoft.BasicImage(invert='1'); }
However, if you want it to work across all browsers you need to use Javascript. Something like this gist will do the job.