How do I extract rotated previews from a RAW file?

Started by skippix, December 18, 2020, 11:33:25 AM

Previous topic - Next topic

skippix

Greetings!

I am using exiftool version 12.12 with the following code to extract previews from my RAW files

exiftool  -b -previewimage -w! C:\Users\skippix\Pictures\Temp\201218102439649\%f_preview.jpg -ext CR2 -r G:\Pictures\Archives\Originals\2020\2020-12(Dec)\201210-wmbg-george-pitt-house-christmas-decorations\

My problem is that all the previews come out horizontal without regard to the files orientation. I am looking for the best way to correct this (i.e., the least amount of coding and overhead, preferably without having to read and correct each preview file individually).

Any suggestions will be greatly appreciated!

Thanks,
Skip

Phil Harvey

Try copying the Orientation tag from the CR2 files to the JPG previews.

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