On Tue, 23 Jan 2001, Liam Hoekenga wrote:
> Hey -
>
> I'm using PHP 4.0.4pl1 w/ Apache 1.3.14 on Solaris 2.6.
> PHP was compiled with GD (1.8.3), jpeg (6b), png (1.0.8), and freetype
> (1.3.1)
>
> I'm trying to overlay text on a existing png graphic, which works, but the
> color depth seems to be getting reduced. Page info in Netscape shows that
> the button is a 16bit "TrueColor" image, but the resulting image is much
> lower in visual colordepth (if not actual color depth).
GD's png support only uses indexed color palettes, so you're limited to
8bit color.
One possible option is to use php_imlib, which uses Imlib2 instead of GD
for manipulating images. Since Imlib2 does everything in 32bit ARGB
space, it'll do what you want. What I'm not sure about is if Imlib2 will
build on Solaris..
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]