ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: gverhoev on June 20, 2016, 03:00:49 PM

Title: Extract JPG preview without saving
Post by: gverhoev on June 20, 2016, 03:00:49 PM
Hi All,

I am often calling exiftool from MATLAB. I now want to extract the *.jpg preview of a *.DNG file. I know this is possible with:

exiftool -b -JpgFromRaw anyfile.dng>full_preview.jpg

However, this creates an additional file "full_preview.jpg", which I would have to read into MATLAB and then delete again. Is it possible to directly extract the preview (so that I can store it as a variable in MATLAB) without having to save it?

Thanks for any insights!

Geert
Title: Re: Extract JPG preview without saving
Post by: Phil Harvey on June 20, 2016, 03:56:09 PM
Hi Geert,

This depends entirely on MATLAB.  Without the ">full_preview.jpg" part of your command, the preview will be sent to the console.  If you can capture the ExifTool console output directly in MATLAB, then you have your preview in memory.

- Phil
Title: Re: Extract JPG preview without saving
Post by: gverhoev on June 20, 2016, 04:55:04 PM
Hi Phil,

OK. Thought so. Tried it but MATLAB did not capture the data. Well, now I know at least that I have to look at that end.

Cheers,

Geert