Author Topic: Can I extract multiple images from CR2 files?  (Read 1289 times)


  • Newbie
  • *
  • Posts: 1
Can I extract multiple images from CR2 files?
« on: March 04, 2016, 04:40:26 PM »

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!


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 18254
    • ExifTool Home Page
Re: Can I extract multiple images from CR2 files?
« Reply #1 on: March 04, 2016, 05:06:46 PM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).