|
Posted by William Gill on 08/30/07 15:59
William Gill wrote:
>>
>> <http://nl3.php.net/imagecolorat>
>
> I played with imagecolorat() before, but it didn't seem to work with a
> non indexed color image (i.e. it worked with a gif, but not a jpeg).
> Reading the spec seemed to confirm that the function returns the color
> index (not the color), which can then be read for rgb values. I was
> able to convert the jpeg to an indexed image, then use imagecolorat(),
> but it meant reducing the original to 256 colors first.
>
> I will try again, using your snippet, and let you know.
further digging says on PHP with GD >= 2.0, imagecolorat() should return
rgb on truecolor images. I need to do some more digging and testing.
[Back to original message]
|