Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Alfonso Acosta
November 28, 2006, 11:41 pm
rate this thread
exif_read_data() doesn't support URLs
(http://php.net/manual/en/function.exif-read-data.php ) but I would
like to do that with the minimum traffic and overhead possible.
A naive solution would be downloading the whole target file locally and
then call exif_read_data() but that means a lot of overhead traffic
considering I only want the exif header.
My approach would be getting just the header but
1) Did anyone implement it already?
2) Is it possible? Any suggestions/advices about how to acheive it? (I
know some php but I'm far from being an expert)
Thanks in advance
Re: Getting EXIF data from external images (http URLs)
Sounds like exactly what you'd need to do.
But you'd need to get the whole file to read the exif info, wouldn't
you, because the exif info is part of the file and not separate from
What sort of exif information are you wanting to extract? Given that
images are generally optimised before being put online, most (if not
all) the exif data will have been removed as it's unnecessary for
display on a website and just adds overhead.
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com