The client needs help with a program that extracts the dominant color of the product image.
I was able to quickly implement this in Javascript; the algorithm below displays only the central square of a 3x3 grid in the image for quick evaluation of the color of the t-shirt in the image.
var image = new Image(); image.onload = function() { try {
The image in question is this (preview below).

However, the results when this image is processed in the above code vary between machines / browsers: #FF635E is what I see on my machine, running Windows7 and using Firefox 32. My Mac running client gets the result #FF474B in Safari and #FF474C in Firefox 33.
Although the results are close, why are they ideally inaccurate? Does getImageData really depend on local configuration or are JPG data interpreted differently on different machines?
Change This image is not disposable. Such color variations were seen in the range of the image that the client requested to process. My client and I got different results for the same set of images.
source share