Req #65187 [Csd->Opn]: exif_read_data : add support for stream resource
| From: | imprec at gmail dot com | Date: | Mon, 25 Nov 2013 13:13:46 +0000 |
| Subject: | Req #65187 [Csd->Opn]: exif_read_data : add support for stream resource | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182919@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65187&edit=1
ID: 65187
User updated by: imprec at gmail dot com
Reported by: imprec at gmail dot com
Summary: exif_read_data : add support for stream resource
-Status: Closed
+Status: Open
Type: Feature/Change Request
Package: EXIF related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
After reading the comment of maggus dot staab at googlemail dot com, I reopen the ticket
Previous Comments:
------------------------------------------------------------------------
[2013-11-25 13:10:34] maggus dot staab at googlemail dot com
while the posted example will work, it requires a lot memory on php-side because you need to read
the whole file + you need additional space for the base64 encoded string.
so its far away from an efficient solution and will not work for big/huge images.
------------------------------------------------------------------------
[2013-07-18 11:38:34] imprec at gmail dot com
Closing it as it's actually already supported via
exif_read_data('data://image/jpeg;base64,'.base64_encode(file_get_contents('image.
jpg')))
------------------------------------------------------------------------
[2013-07-02 21:47:37] imprec at gmail dot com
Description:
------------
exif_read_data currently read exif metadata only from filepath.
In case the image is in memory (stream resource, binary string, etc...) the image
as to be written on disk before reading the exif data.
It would be awesome to be able to read from a stream resource.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65187&edit=1