ID:               39286
 Updated by:       [EMAIL PROTECTED]
 Reported By:      seth at pricepages dot org
-Status:           Open
+Status:           Assigned
 Bug Type:         GD related
 Operating System: Mac 10.4
 PHP Version:      5CVS-2006-10-27 (snap)
-Assigned To:      
+Assigned To:      pajoye


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

[2006-10-27 20:11:17] seth at pricepages dot org

Description:
------------
This script results in the error message:
'http://leopold.sage.wisc.edu/world.vis.675.gd2' is not a 
valid GD2 file

But it *is* valid. The problem is that the parameter passed 
has zero width, but the error message is misleading.

Reproduce code:
---------------
<?php
$img =
imagecreatefromgd2part('http://leopold.sage.wisc.edu/world.vis.675.gd2',
0, 100,0, 100);

/* This works fine:
$img =
imagecreatefromgd2part('http://leopold.sage.wisc.edu/world.vis.675.gd2',
0, 100,100, 100);
*/

header('Content-Type: image/png');
imagepng($img);
?>



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


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

Reply via email to