Author Topic: extract JPG from RAW and properly rotate orientation ???  (Read 153 times)

jchin

  • Newbie
  • *
  • Posts: 9
extract JPG from RAW and properly rotate orientation ???
« on: July 24, 2018, 05:25:46 PM »
Is there a way to have exiftool extract the JPEG from RAW and rotate it the proper orientation?
Right now all the extracted JPEG files are landscape (horizontal), including the ones shot portrait (vertical).
Is there a way to use exiftool to rotate them?
I am looking to process a folder full of images.
Thanks in advance.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 13651
    • ExifTool Home Page
Re: extract JPG from RAW and properly rotate orientation ???
« Reply #1 on: July 25, 2018, 07:11:47 AM »
After extracting the JPEG, copy the Orientation tag to it:

exiftool -tagsfromfile %d%f.RAW -orientation -ext jpg 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 ($).