ExifTool Forum

ExifTool => Newbies => Topic started by: afrland on September 09, 2016, 05:51:50 PM

Title: Extract all PreviewImage to specific destination directory
Post by: afrland on September 09, 2016, 05:51:50 PM
Hello,

It looks like a damn newbee question, but I googled and tried a lot of options, but still don't know how to specify a destination folder while extracting multiple (all) preview images from a raw files.
I want to extract all preview images from the SD card and store them at specific destination. Is there an option to tell the ExifTool to store then in a specific directory?

It works for a single file (like below)
exiftool -b -PreviewImage  "patch to SD card"/IMG_1234.CR2  > "destination dir"/IMG_1234_preview.jpg

How to do the same for all images? E.g.
exiftool -b -PreviewImage -w <_peview.jpg -ext CR2 -r "patch to SD card"  ...?...


Thanks for your help!
Title: Re: Extract all PreviewImage to specific destination directory
Post by: Phil Harvey on September 10, 2016, 08:07:37 AM
This example from the ExifTool application documentation (https://exiftool.org/exiftool_pod.html#reading_examples) could be exactly what you want:

Quoteexiftool -a -b -W %d%f_%t%-c.%s -preview:all dir
Extract all types of preview images (ThumbnailImage, PreviewImage, JpgFromRaw, etc.) from files in directory "dir", adding the tag name to the output preview image file names.

If you want them to go to a different directory, replace "%d" with whatever directory you want.

- Phil

Title: Re: Extract all PreviewImage to specific destination directory
Post by: afrland on September 10, 2016, 12:28:10 PM
Thank you, works like a charm.
Great tool!