Bug #15360 Updated: The Function ImageCreateFromPNG lose some colors

From: Date: Sun, 10 Feb 2002 16:05:24 +0000
Subject: Bug #15360 Updated: The Function ImageCreateFromPNG lose some colors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66@lists.php.net to get a copy of this message
ID: 15360 Updated by: derick@php.net Reported By: dirk.schaeck@system-interface.de -Status: Open +Status: Bogus Bug Type: GD related Operating System: Linux PHP Version: 4.0.6 / 4.1.1 New Comment: Not a bug, but a limitation in the GD 1.x library. You shoudl upgrade your GD to 2.x if you want to use true color PNGs. Derick Previous Comments: ------------------------------------------------------------------------ [2002-02-10 11:01:46] dirk.schaeck@system-interface.de I Have test the script whith a 4.1.1 and NT5.0 my GD libinfo GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library JPG Support enabled PNG Support enabled WBMP Support enabled the script is here .... <? // File open $im = imagecreatefrompng("test.png"); /* Attempt to open */ // send image Header("Content-type: image/jpeg"); ImagePNG($im); //Send pic to browser ?> ------------------------------------------------------------------------ [2002-02-04 16:33:13] dirk.schaeck@system-interface.de Sorry i thinkit is a 4.1,1 but here the current Infos PHP Version 4.0.6 Linux sa-webpack.one-2-one.net 2.2.19-6.2.1 #1 Mon Apr 9 22:24:58 EDT 2001 i586 unknown './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local/phplibs/' '--with-gd=/usr/local/phplibs/' '--enable-track-vars' '--with-jpeg-dir=/usr/local/phplibs/lib' '--enable-versioning' '--with-imap=/usr/local/phplibs/' '--enable-ftp' '--with-mcrypt=/usr/local/phplibs/' '--with-zlib=/usr/local/phplibs/' '--with-swf=/usr/local/phplibs/' '--with-xml' '--with-recode=/usr/local/phplibs/' '--with-config-file-path=/usr/local/phplibs/ini/' '--with-gdbm=/usr/local/phplibs/' '--with-ndbm=/usr/local/phplibs/' '--enable-dbase' '--enable-bcmath' '--enable-memory-limit' '--enable-trans-sid' '--with-ttf=/usr/local/phplibs/' '--enable-gd-native-ttf' '--with-png-dir=/usr/local/phplibs/' GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library JPG Support enabled PNG Support enabled WBMP Support enabled i think thats all what u need thankx dirk schaeck ------------------------------------------------------------------------ [2002-02-04 10:41:01] sander@php.net Which version of GD are you using? If your PNG contains 'true colors', GD 1.x can't handle them. ------------------------------------------------------------------------ [2002-02-03 16:19:53] dirk.schaeck@system-interface.de Hello, i get a png image whith more than 16 color whith the function ImageCreateFromPNG and i send it to the Browser. If i compare the color from the original and from the Picture on browser i see the first 16 color correctly but the next colors behind are a repeating colorset. ( i think this are the default color from the gd lib). thanks dirk ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15360&edit=1

« previous php.bugs (#66) next »