php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39263 Enable image(gif|jpg|png) functions to save to a php stream
Submitted: 2006-10-26 08:54 UTC Modified: 2011-01-03 10:36 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: wb at pro-net dot co dot uk Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
14 + 5 = ?
Subscribe to this entry?

 
 [2006-10-26 08:54 UTC] 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 :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-26 12:43 UTC] pajoye@php.net
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.
 [2008-08-17 11:32 UTC] nicos@php.net
Pierre, are you still working on that bug or maybe you need some help?
 [2010-01-14 12:19 UTC] lgynove at 163 dot com
still not fix... three year
 [2010-12-20 14:18 UTC] jani@php.net
-Package: Feature/Change Request +Package: GD related -PHP Version: 5CVS, 6CVS +PHP Version: *
 [2011-01-03 10:36 UTC] pajoye@php.net
-Status: Assigned +Status: Closed
 [2011-01-03 10:36 UTC] pajoye@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Feature implemented in trunk. You can get it using http://snaps.php.net or windows binaries from http://rmtools.php.net/snaps/ (revision > 30719).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 15:01:28 2024 UTC