Sounds kind of like a hard problem doesn't it? We often don't have product shots in thousands of colors, such that we can flip out the
<img src="product-red.jpg" alt="red product"/> with
<img src="product-blue.jpg" alt="blue product"/>. Nor do we typically have products in a vector format such that we can apply SVG
fills to them and such.
There is a clever way to do it though, even when your product shots are bitmap graphic files, like JPG or PNG. … Read article