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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wb at pro-net dot co dot uk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 12:01:31 2024 UTC