php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25507 Extend image functions to use files or buffers for source data
Submitted: 2003-09-12 04:34 UTC Modified: 2003-09-12 06:28 UTC
From: hr at ansmann-energy dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hr at ansmann-energy dot com
New email:
PHP Version: OS:

 

 [2003-09-12 04:34 UTC] hr at ansmann-energy dot com
Description:
------------
It would be nice if the imagecreatefrom*, exif_*, getimagesize, iptcembed, iptcparse functions would not only work with files but also with buffer-variables containing image data.

Then if retrieving binary image data from a database, it would save the overhead of writing and reading this data to plain files for data manipulation.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-12 06:28 UTC] helly@php.net
All functions you have named can handle streams, so the only thing you need to do is using a stream around your buffer stream_register_wrapper(). And there is also imagecreatefromstring() which can handle php strings as buffer. That works because php strings know their length and can store \0 in contrast to c strings.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 25 20:01:28 2024 UTC