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
Hi Alan,
Add -a -G1 to your command lines when extracting information to see what is happening.
- Phil
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
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