Is it possible to get Exif from a partial downloaded file?

Started by fcy, November 07, 2013, 09:08:36 AM

Previous topic - Next topic

fcy

Hello guys,

I'm trying to find this information in Google and I'm not getting any luck. What I want to do is to download only a specific size for a image file just to get its Exif metadata, using HTTPs Range Retrieval Requests.

Is there a safe size to assume that will give me access to the Exif tags? Something like: "download the first 700 kbytes".

Phil Harvey

If you pipe the file to ExifTool directly with the -fast option, then ExifTool will only download what is necessary.

The EXIF may be up to 64kB, but there may be a JFIF segment before it (which may contain a thumbnail), and XMP segments after it (which may be 100's of kB for some images).

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

fcy