|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-03 16:19 UTC] dirk dot schaeck at system-interface dot 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
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 ?>