ExifTool Forum

ExifTool => Newbies => Topic started by: SulG on September 17, 2012, 08:42:32 PM

Title: Rotation of PreviewImage
Post by: SulG on September 17, 2012, 08:42:32 PM
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
Title: Re: Rotation of PreviewImage
Post by: Phil Harvey on September 18, 2012, 07:06:37 AM
Try copying the Orientation tag to the preview image:

exiftool -tagsfromfile IMG_4147.dng -orientation IMG_4147prev.jpg

- Phil