Re: jpeg image decompiling
- From: "Rik Wasmus" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 19:39:56 +0200
On Thu, 30 Aug 2007 17:59:18 +0200, William Gill <noreply@xxxxxxxxxxxxxxx> wrote:
William Gill wrote: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.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.
<http://nl3.php.net/imagecolorat>
I will try again, using your snippet, and let you know.
Indeed. Use print_r(gd_info()); to see the specifics of your gd version.
--
Rik Wasmus
My new ISP's newsserver sucks. Anyone recommend a good one? Paying for quality is certainly an option.
.
- Follow-Ups:
- Re: jpeg image decompiling
- From: William Gill
- Re: jpeg image decompiling
- References:
- jpeg image decompiling
- From: William Gill
- Re: jpeg image decompiling
- From: Rik Wasmus
- Re: jpeg image decompiling
- From: William Gill
- Re: jpeg image decompiling
- From: William Gill
- jpeg image decompiling
- Prev by Date: Re: linking a research form with a display page
- Next by Date: Re: PHPMailer AltBody variable
- Previous by thread: Re: jpeg image decompiling
- Next by thread: Re: jpeg image decompiling
- Index(es):
Relevant Pages
|