Bug #46951 [Opn->Csd]: GD ext need to support streams
| From: | cmb@php.net | Date: | Thu, 07 May 2015 18:49:40 +0000 |
| Subject: | Bug #46951 [Opn->Csd]: GD ext need to support streams | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192561@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=46951&edit=1
ID: 46951
Updated by: cmb@php.net
Reported by: syncer at gmail dot com
Summary: GD ext need to support streams
-Status: Open
+Status: Closed
Type: Bug
Package: GD related
Operating System: any
PHP Version: 5.3.0alpha3
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This issue is already fixed in recent PHP versions (at least as of
PHP 5.4.19).
Previous Comments:
------------------------------------------------------------------------
[2011-06-08 00:27:24] stas@php.net
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.
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=46951&edit=1