Re: [PHP4BETA] can't get transparent color in png

From: Date: Thu, 27 Apr 2000 19:31:52 +0000
Subject: Re: [PHP4BETA] can't get transparent color in png
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14116@lists.php.net to get a copy of this message
Hi, You need to reverse the order of the Fill and ColorTransparent calls -- the ColorTransparent call converts a particular color in the image to be transparent, it does not change the color code ("iColorBack") to be transparent. Also, I have noticed png support in Linux is less than ideal -- creating transparent PNGs in some programs (like ImageMagick) do not show up as transparent in others (like the Gimp) and my Linux Netscape is completely unable to display transparent PNGs properly. Ciao, Andreas "Roland T. Lichti" wrote: > > Hello, > > I want to create a small image in php4rc1 with transparent background. > But > > $iColorBack = ImageColorAllocate($img, 0xFF, 0xFF, 0xFF); > ImageColorTransparent($img, $iColorBack); > ImageFill($img, 0, 0, $iColorBack); > > ImagePng($img); > > doesn't seem to work. The image has a solid white background. Is PNG incapable > of transparent backgrounds or is this a bug of php4rc1? >

« previous php.version4 (#14116) next »