ExifTool Forum

General => Metadata => Topic started by: mattburns on June 24, 2011, 07:27:48 PM

Title: Reading EXIF from file stream (file over internet)
Post by: mattburns on June 24, 2011, 07:27:48 PM
Hi,

I was just wondering where in the file the EXIF data normally sits. Is it ever at the start of the file?

I'd like to read the EXIF from jpegs on the internet and then drop the connection once enough EXIF has been read instead of retrieving the whole file to save bandwidth.

Is this possible?

Cheers,
Matt
Title: Re: Reading EXIF from file stream (file over internet)
Post by: Phil Harvey on June 24, 2011, 08:04:14 PM
Hi Matt,

In JPEG images, the metadata is at the start of the image, so this technique works well.  This is the 4th example in the PIPING EXAMPLES section of the application documentation (https://exiftool.org/exiftool_pod.html#piping_examples).  I have also posted an example script that does this via the ExifTool API here (http://www.perlmonks.org/bare/?node_id=876266).

- Phil
Title: Re: Reading EXIF from file stream (file over internet)
Post by: mattburns on June 24, 2011, 10:11:09 PM
Thanks Phil,

That's exactly what I was looking for. A significant shift in my plans from "non-viable" to "plausible"!

Cheers,
Matt