#39263 [Asn]: Enable image(gif|jpg|png) functions to save to a php stream

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               39263
 Updated by:       [email protected]
 Reported By:      wb at pro-net dot co dot uk
 Status:           Assigned
 Bug Type:         Feature/Change Request
 Operating System: *
 PHP Version:      5CVS, 6CVS
 Assigned To:      pajoye
 New Comment:

Pierre, are you still working on that bug or maybe you need some help?


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

[2006-10-26 12:43:02] [email protected]

I cannot agree more. I have a patch for a general imageto function, it
needs clean up and to be updated for the current head. I'm not sure when
I will do it but this feature will be in php, and the sooner the better.

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

[2006-10-26 08:54:20] wb at pro-net dot co dot uk

Description:
------------
It would be nice to be able to save a GD image directly to an already
open php stream.

Reproduce code:
---------------
<?php

// $fp is any valid php stream resource.
// $im is a GD image resource.
imagepng($im, $fp);

?>

Expected result:
----------------
Image saved using the stream $fp.

Actual result:
--------------
Nothing :)


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


-- 
Edit this bug report at http://bugs.php.net/?id=39263&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.