News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

-orientation# with a .nef from NikonViewNX2

Started by Alan Clifford, August 07, 2011, 04:02:09 PM

Previous topic - Next topic

Alan Clifford

Hi Phil.

I've been fiddling with a file in nikonviewnx2 and, afterwards -orientation#=6 didn't work

alan@coprolith:temp$ exiftool -orientation# ahc_1747_p.nef
Orientation                     : 1
alan@coprolith:temp$ exiftool -orientation#=6 ahc_1747_p.nef
    1 image files updated
alan@coprolith:temp$ exiftool -orientation# ahc_1747_p.nef
Orientation                     : 1

However it does work on the original, out of camera, .nef

Not something I'd noticed before because I don't usually change the orientation of the Nikon photos.


Alan

Phil Harvey

Hi Alan,

Add -a -G1 to your command lines when extracting information to see what is happening.

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

Alan Clifford

alan@coprolith:temp$ exiftool -a -G1 -orientation# ahc_1747_p.nef
[IFD0]          Orientation                     : 6
[SubIFD]        Orientation                     : 1
[SubIFD1]       Orientation                     : 1
[SubIFD2]       Orientation                     : 1

whereas for the original out-of-camera
alan@coprolith:temp$ exiftool -a -G1 -orientation# ahc_1747.nef
[IFD0]          Orientation                     : 6

Are those SubIFD's from the revisions I've done in Viewnx2 perhaps.

In viewnx2, the former is not displayed as rotated whilst the latter is not.

When the file is converted to a jpg by viewnx, the IFD0 value becomes 1.

alan@coprolith:temp$ exiftool -a -G1 -orientation# ahc_1747_p.JPG
[IFD0]          Orientation                     : 1

I tried using all:orientation#=6 but that didn't set all the orientation values.

Phil, this is of minor importance for my use but I thought I should let you know.

Alan

Phil Harvey

Hi Alan,

Thanks for letting me know.  ExifTool currently will not change a tag in multiple IFD's simultaneously unless you assign them all yourself individually.  The main reason for this is safety -- I'm scared that updating the tag in all IFD's may have some unexpected side-effects for some image types.  (Since various image types use various different IFD's for different purposes.)

As a result, by default ExifTool updates the tag only in the standard IFD.

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