Exiftool set the wrong exif orientation!

Started by EricB, March 01, 2012, 06:19:13 PM

Previous topic - Next topic

EricB

Short story

Simply
exiftool -overwrite_original -m -exif:Orientation=1 img.jpg
and then
exiftool -exif:Orientation img.jpg
results to
Orientation                     : Rotate 180

--> it brakes the standard! (see http://www.exif.org/Exif2-2.PDF page 24)

Long story
I am using the following command to "remove" the exif orientation all all images within a directory in a PowerShell script (under Win 7 x64) with productive version 8.77

exiftool -overwrite_original -m -exif:Orientation="Horizontal (normal)" $outputDir1

This works fine, but always get the warning
Error: File not found - (normal)

So I tried using the int value of the default orientation (1 = top left):
exiftool -overwrite_original -m -exif:Orientation=1 $outputDir1

But the resulted images get the orientation 3 (bottom right).

Phil Harvey

Let me know if you have any questions after reading FAQ number 6 and this thread.

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

EricB

ok thanks for the reply and sorry for the duplicate.
So the proper command is
exiftool -overwrite_original -m -exif:Orientation=1 -n img.jpg
it works fine.

after reading the other thread twice, I got it: the confusion comes from "1" interpreted as "180" (as a shortcut). exiftool is simply too powerful ;)