Main Menu

Rotation of PreviewImage

Started by SulG, September 17, 2012, 08:42:32 PM

Previous topic - Next topic

SulG

Hello,
I am a newbie to ExifTool. It is a great tool!

I am using it currently to generate Preview Images from DNG files for our Digital Asset management system.

For example:
exiftool -b -PreviewImage IMG_4147.dng > IMG4147prev.jpg

The preview image orientation is as expected, when the DNG file shot Orientation= Normal. (horizontal layout).
However when the DNG File shots are vertical (Orientation = Rotate 90), the generated PreviewImage is sideways.

Can I add an option/condition to the command line "exiftool -b -PreviewImage IMG_4147.dng > IMG4147prev.jpg" so that PreviewImages for Vertical shot DNG files are not rotated sideways.

I have attached the generated preview jpg IMG4147prev.jpg with this post. As you can see the preview image is rotated sideways.
The original DNG file was too large for attachment, but I have attached the screenshot of DNG file as opened in PhotoShop.(IMG_4147dng_screenshot)

Your help is appreciated.

Thanks,
SulG

Phil Harvey

Try copying the Orientation tag to the preview image:

exiftool -tagsfromfile IMG_4147.dng -orientation IMG_4147prev.jpg

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