|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-13 15:33 UTC] Jones at partykel dot de
If I generate a PNG with PHP 4.3.0, GD and libpng 1.2.5 and try to use a transparent color with imagecolortransparent(), that doesn't work in Opera (I've tested with Versions 6 & 7). Sometimes simply nothing happens and sometimes another color is set as transparent. In Mozilla, everything works fine. With the previous Version of PHP and GD 1.8.4 and libpng 1.2.4 it worked in Opera. My configure line: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-freetype-dir=/usr/local/include --with-jpeg-dir=/var/install/php/jpeg-6b --with-png-dir --enable-track-vars --enable-ftp --with-zlib --with-gd --with-sockets --enable-sockets --with-sysvshm --with-sysvsem --disable-debug --with-mysql=/usr PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 03:00:01 2025 UTC |
iliaa: <? header('Content-type: image/png'); $Image = imagecreate(300,150); $Body = imagecolorallocate($Image,222,222,222); $Char = imagecolorallocate($Image,10,36,106); imagecolortransparent($Image,$Char); imagechar($Image,5,100,50,"P",$Char); imagepng($Image); ?> rasmus: yeah but I think this problem perhaps only DOESN'T appear with IE & Mozilla but with most other browsers...