I'm working on my own lil version of a image-to-text converter, and it all works except one thing: the colors.
I've tried imagecreate and imagecreatetruecolor, with varying results. truecolor returns more colors, but darker colors show up as bright green or red in big chunks, and some chunks of dark color are fine. I've no idea what that problem is.
imagecreate has less of these spontaneous color glitches, but of course less colors, so it looks like crap.
My guess is that the problem lies somehow in how I get the colors.
Any help would be appreciated...
//GET COLOR
$rgb = ImageColorAt($referenceimage, $w, $h);
$colors=imagecolorsforindex($referenceimage, $rgb);
$r = dechex($colors["red"]);
$g = dechex($colors["green"]);
$b = dechex($colors["blue"]);
$color=$r . $g . $b;