ID:               41057
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rempargo at gmail dot com
-Status:           Closed
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Windows XP Home
 PHP Version:      5.2.1


Previous Comments:
------------------------------------------------------------------------

[2007-04-12 17:11:01] rempargo at gmail dot com

It was indeed my viewer (VuePrint 8.0), it gave the wrong size.
I was misled, because .gif and .jpg were correct in this viewer.

------------------------------------------------------------------------

[2007-04-11 19:53:56] [EMAIL PROTECTED]

Cannot reproduce anything like that.
Check your image viewer.

------------------------------------------------------------------------

[2007-04-11 19:50:14] [EMAIL PROTECTED]

Please put the result image somewhere, so we can take a look at it.

------------------------------------------------------------------------

[2007-04-11 19:37:12] rempargo at gmail dot com

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);
?> 




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41057&edit=1

Reply via email to