Getting EXIF data from external images (http URLs)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alfonso  Acosta

    Getting EXIF data from external images (http URLs)

    Hi all,


    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

    Alfonso Acosta

  • Chris Hope

    #2
    Re: Getting EXIF data from external images (http URLs)

    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

    Comment

    Working...