|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-11 19:50 UTC] tony2001@php.net
[2007-04-11 19:53 UTC] tony2001@php.net
[2007-04-12 17:11 UTC] rempargo at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 08:00:01 2025 UTC |
Description: ------------ imagepng creates incorrect sized png file if imagecreatetruecolor parameters are smaller then 26. e.g. 25 x 25 becomes 31 x 31. The problems only occurs with imagepng, not with imagejpg nor with imagegif. Reproduce code: --------------- <?php header ("Content-type: image/png"); $im = @imagecreatetruecolor(25, 25) or die("Cannot Initialize new GD image stream"); imagepng($im,null,0); imagepng($im,'test.png',0); imagejpeg($im,'test.jpg',100); imagegif($im,'test.gif'); imagegd2($im,'test.raw'); imagedestroy($im); ?>