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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 14:05:53 2022 UTC