Reading EXIF from file stream (file over internet)

Started by mattburns, June 24, 2011, 07:27:48 PM

Previous topic - Next topic

mattburns

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

Phil Harvey

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.  I have also posted an example script that does this via the ExifTool API here.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mattburns

Thanks Phil,

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

Cheers,
Matt