Extracting small resolution jpeg and GPS data from RAW files.

Hi,

I know that some RAW formats store a small resolution JPEG image for quick preview that is different from a thumbnail. I manage to extract that using third party software such as ExifTool, how is it possible to extract that using LibRaw? Also in the changelog I see that you have added an option for GPS data extraction, but when I try that i.e.

open the file and read the data from imgdata.other.gpsdata it always returns nothing. Is there anything else I should do for after open_file(fileName) to load the needed information?

And the same question for xmpData.

Thank you in advance,

--Karo

Forums: 

LibRaw::unpack_thumb()

LibRaw::unpack_thumb() unpacks thumbnail in memory. See simple_dcraw sample (code within if(output_thumbs) ) for details.

other.gpsinfo is unparsed GPS block. New feature is other.parsed_gps with values parsed.
open_file() should be enough to read this data.

-- Alex Tutubalin