#25507 [Opn->Csd]: Extend image functions to use files or buffers for source data

From: Date: Fri, 12 Sep 2003 10:28:53 +0000
Subject: #25507 [Opn->Csd]: Extend image functions to use files or buffers for source data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47507@lists.php.net to get a copy of this message
ID: 25507 Updated by: helly@php.net Reported By: hr at ansmann-energy dot com -Status: Open +Status: Closed Bug Type: Feature/Change Request -Operating System: FreeBSD 4.8-RELEASE-p3 +Operating System: * PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-09-12 04:36:26] hr at ansmann-energy dot com . ------------------------------------------------------------------------ [2003-09-12 04:34:47] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25507&edit=1

« previous php.bugs (#47507) next »