You are kidding me, right?
I can't believe it. In this age, 256 colors just doesn't cut the mustard.
Oh well, free is free, ya get what ya pay for.
And here I was all excited about the GD library.
Thanks
Dan
-----Original Message-----
From: Matt McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 10:16 AM
To: Dan Harrington
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] imagecolorallocate / imagesetpixel / palette size?
On Sun, Feb 11, 2001 at 01:40:11AM -0700, Dan Harrington wrote:
(snip)
> Its like the "palette" only holds 256 pixels or something, what's
> the deal with that?
>
> Anyone experienced this before? I've looked through the GD library
> documentation
> at boutell.com, i've looked through php.net, and every search engine on
the
> internet, and I can't seem to find out what is going on.
You're right, the palette only holds 256 colors. The reason for this
is that GD was originally written for GIFs only. JPEGs were added on
later, and then PNGs were put in as a drop-in replacement for GIFs
(Patent issues). But the library was never extended to support high
color.
If you're using Unix, one alternative could be php_imlib.
http://mmcc.cx/php_imlib/
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]