This is actually quite easily done in css:
So you could give all of your white on black images a class name:
Code:
<img class="whiteonblack" src="whatever.jpg">
Then in your stylesheet have:
Code:
.whiteonblack {
filter: invert();
}
This can also be done in javascript, but this is simpler and uses the same css property. If you want to actually transform the image, so that you end up with an inverted image, you would need to use server side code. But this is simple and effective and support by almost all browsers.
Bookmarks