ExifTool Forum

General => Metadata => Topic started by: fcy on November 07, 2013, 09:08:36 AM

Title: Is it possible to get Exif from a partial downloaded file?
Post by: fcy on November 07, 2013, 09:08:36 AM
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 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2).

Is there a safe size to assume that will give me access to the Exif tags? Something like: "download the first 700 kbytes".
Title: Re: Is it possible to get Exif from a partial downloaded file?
Post by: Phil Harvey on November 07, 2013, 09:34:00 AM
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
Title: Re: Is it possible to get Exif from a partial downloaded file?
Post by: fcy on November 07, 2013, 09:40:50 AM
Thank you Phil. Sounds awesome, I'll give it a try.