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

 ID:                 46951
 Updated by:         [email protected]
 Reported by:        syncer at gmail dot com
 Summary:            GD ext need to support streams
 Status:             Open
-Type:               Feature/Change Request
+Type:               Bug
 Package:            GD related
 Operating System:   any
 PHP Version:        5.3.0alpha3
 Block user comment: N
 Private report:     N

 New Comment:

I think it's a bug - GD functions should work with streams as other functions 

using files do. Test case:



<?

// Create a blank image and add some text

$im = imagecreatetruecolor(120, 20);

$text_color = imagecolorallocate($im, 233, 14, 91);

imagestring($im, 1, 5, 5,  'A Simple Text String', $text_color);



// Save the image as 'simpletext.jpg'

var_dump(imagejpeg($im, "php://stdout"));



returns false and does not output what it needs to.


Previous Comments:
------------------------------------------------------------------------
[2008-12-27 07:37:11] syncer at gmail dot com

Description:
------------
PHP has wide support for Streams, Please add stream support for GD output 
functions imagegif(), imagepng(), imagewbmp(), imagejpeg() 



There is a work around with ob_buffer system and then out to stream resource 
but why not to be native supported.



Thanks.



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



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

Reply via email to