I have an image 4x4 pixels, each pixel has the exact color that i want e.g #439902 etc,
I grab my image convert it to a palette using gd's imagetruecolortopalette()
function, then i try to find the closest color in my image to another predefined color using imagecolorclosest()
function, the problem is that it brings back a different color altogether, one thats not in my 4x4 image, the color is close to one of my colors but i need it exact.
I think the problem is that when i use to imagetruecolortopalette()
function all the colors in my 4x4 image slightly change,
Is there a way round this problem.?
As an example...
if i Search for ( 66,100,39 ) my closest Match is: (76,90,56).
well 76,90,56 has changed because the colour was (78,98,43) in my original image. I know its not far out but i need it to stay the same