You are here: Re: Getting EXIF data from external images (http URLs) « PHP Programming Language « IT news, forums, messages
Re: Getting EXIF data from external images (http URLs)

Posted by Chris Hope on 11/29/06 02:20

Alfonso Acosta wrote:

> 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()

Sounds like exactly what you'd need to do.

> but that means a lot of overhead
> traffic considering I only want the exif header.
>
> My approach would be getting just the header but

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
it.

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

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация