in reply to Extracting pixel values

If the image is in one of the forms supported by GD, then once you have loaded the image in the usual way, then you can use getPixel( x, y ) to obtain the color value. From the docs:

$index = $image->getPixel(x,y) object method This returns the color table index underneath the specified point. It can be combined with rgb() to obtain the rgb color underneath the p +ixel. Example: $index = $myImage->getPixel(20,100); ($r,$g,$b) = $myImage->rgb($index);

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."