Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotation info in a NEF file #2

Closed
photopea opened this issue Dec 29, 2018 · 4 comments
Closed

Rotation info in a NEF file #2

photopea opened this issue Dec 29, 2018 · 4 comments

Comments

@photopea
Copy link

Hi, when I process the attached NEF file with exiftool, it detects a Rotation: 270. I need to programmatically extract this information form a file, but can not find it anywhere (not in Shot Info, neither in IPTC data, neither in XMP, neither in Exif 0xbc02). Where did Exiftool find it?
portrait.zip

@exiftool
Copy link
Collaborator

This comes from the Nikon maker notes. See here for a complete list of Nikon tags extracted:

http://owl.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html

@photopea
Copy link
Author

Thanks for the answer! According to your link, only Shot Info - tag 145 (0x91) - can contain the information about Rotation / Orientation. I looked into the MakerNote of my file. There is a tag 145 (0x91), which apparently contains "Nikon ShotInfoD3a".

I looked into the definition of ShotInfoD3a here:

https://github.com/exiftool/exiftool/blob/bd34970d642d8bd6191909ac857a075be5468275/lib/Image/ExifTool/Nikon.pm

and apparently, it does not contain any Rotation information :( Is it possible, that ExifTool found the rotation information elsewhere, maybe completely outside of MakerNote?

@exiftool
Copy link
Collaborator

exiftool commented Dec 30, 2018

You can see where it came from and the tag ID using this command:

% exiftool -rotation -G1 -H portrait.nef
[NikonCapture] 0x76a43207 Rotation : 270

So the information comes from the Nikon software.

@photopea
Copy link
Author

Wow, you are right! I did not notice the whole NikonCapture structure. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant