Can I extract multiple images from CR2 files?

Started by Karenl39, March 04, 2016, 04:40:26 PM

Previous topic - Next topic

Karenl39

Hello,

I have searched the forums and have been unable to find the answers to my question.  I am able to extract a preview image from a CR2 file, but am unable to figure out if I can extract multiple images from a folder? 

In order to extract an image, I type in: PreviewImage -b (Now, I drag the image onto the terminal application in my Mac) >testing.jpg 

This creates a jpg image of my CR2 file named testing.jpg

How can I do this for multiple images so I don't have to type this in 1 image at a time?

Thank you!

Karen

Phil Harvey

Hi Karen,

This is one of the examples in the application documentation:

    exiftool -b -JpgFromRaw -w _JFR.JPG -ext NEF -r .
            Recursively extract JPG image from all Nikon NEF files in the
            current directory, adding "_JFR.JPG" for the name of the output
            JPG files.


The same command may be used for your CR2 files with PreviewImage.  It will be something like this:

exiftool -b -previewimage -w _preview.jpg -ext cr2 DIR

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