Lightroom/Photoshop: Images edited in Nikon ViewNX2 have orientation change by 90 degrees

  • 4
  • Problem
  • Updated 7 years ago
  • (Edited)
With portrait-orientated-files that where edited (and re-saved )in Nikon ViewNX2 the following happens in Lightroom 3.4.1.

If you send the file from Lightroom to Photoshop it is rotated by 90 degree.
Also if you edit it in Lightroom a wrong orientation value is written to the xmp file,
so after a reload of the metadata in Lightroom the image also will be rotated.

By doing:
Metadata -> Save Metadata to file, and then
Metadata -> Read Metadata from file
you can turn these images counterclockwise by 90 degree every step.
Photo of mspler

mspler

  • 5 Posts
  • 0 Reply Likes
  • frustrated

Posted 7 years ago

  • 4
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14100 Posts
  • 1749 Reply Likes
It sounds like it's unique to having edited in Nikon ViewNX2. Have you asked the Nikon folks about this issue?
Photo of mspler

mspler

  • 5 Posts
  • 0 Reply Likes
I'm not sure if it's ViewNX2's fault although the problem is related to it .
It's also the same for CaptureNX2.
I tried several times to contact Nikon-support about different things...useless.

1. When Lightroom first scans a NEF-File edited in ViewNX 2 the orientation is correct.
2. also when Lightroom first write the values to the xmp file the orientation value is correct.
(Proof: It is possible for Lightroom to read the correct value)

3. But when you then force "Metadata -> Read Metadata from file" the orientation changes
4. this also happens when you send the file to Photoshop

It seems that Lightroom reads values from the NEF-file and the xmp file
and merge them to a wrong value.

----> Ok, got closer!

ViewNX seems to store 2 different values, 1 is absolute and one is an offset in degree, one of them is wrong/added only after editing in ViewNX.
This problem only occurs if saving an image in ViewNX that has a non-default orientation.
(For example when saving an image which is turned by 180 degree you get the same problem in Lightroom with 180 degree).

(When the camera stores the image it stores in landscape orientation
and sets an additional rotation-value to view the image.
Maybe ViewNX stores the image at portrait-orientation and has still an additional not needed rotation-value for viewing.)

---> Workaround (works also for multiple selected images)

In ViewNX 2:

1. rotate the image to original camerachip-orientation like it would look without
orientation correction, e.g. for pictures of people. feet left and head right (maybe you do it in other direction).
2. Now edit the image and save it (or change any not used value for and back to be able to save).
3. After saving the image you can set the rotation in ViewNX to anything you want.

---> Conclusion:

Maybe ViewNX adds a wrong value or Lightroom does something wrong with the "maybe" new added/not anymore needed value after editing in ViewNX.

Without Source-Code i can't find out more.

I hope someone of the developer looks into this.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14099 Posts
  • 1749 Reply Likes
Yeah. It's hard to tell. We may have to have you post some files so our QE/engineers can see what ViewNX is writing for metadata.
Photo of mspler

mspler

  • 5 Posts
  • 0 Reply Likes
Hi i uploaded a Zip-File containing an image 1 time as it comes from the camera and a second Version edited in ViewNX2.
Please tell me if you got the file so i can remove it from the web.

Just open both in Lightroom and send them to Photoshop...you will see.
Then just try:
Metadata -> Save Metadata to file
Metadata -> Read Metadata from file

http://www.planetspeer.de/temp2011/ad...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
mspler - I wasn't able to understand exactly what the problem is. But, it sounds like you are expecting rotational changes made in ViewNX to be honored by Lightroom - they typically are not. I use both programs regularly but haven't noticed any problems, making me wonder if its simply a matter of expectation.

Reminder: I wasn't able to follow everything you posted above so what I said may not make sense...
Photo of mspler

mspler

  • 5 Posts
  • 0 Reply Likes
The main problem is:
If i click on an NEF-File with portrait-orientation that was edited in ViewNX 2
and click in Lightroom on "edit in Photoshop" that file will be opened with
landscape-orientation.
If i do any changes to this file (in Lightroom) for example add 1 star for rating.
The preview in Lightroom changes also to landscape-orientation.
Buw now If i click on "edit in Photoshop" that file will be opened with
portrait-orientation but wrong (head down).

So the image turns everytime by 90 degree.
Really annoying.

1. Rotational changes in ViewNX 2 are recognized in Lightroom 3 !

If i change the rotation in ViewNX the rotation in Lightroom changes also a few seconds later (You have to leave focus on image in ViewnX to save new rotation settings into the file and see the effect in Lightroom)

2. I'm not the only 1 with this problem !

Maybe this problem is only related to Windows and special cameras
and does not occur on MAC and some other cameras.
I'm not able to test this.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Having experienced this problem myself now I understand.

Simply saving a portrait oriented photo file (raw NEF) in NX2 *without* having rotated it, causes it to rotate erroneously in Lightroom.

After correction in Lightroom and saving metadata, reading metadata causes the erroneous rotation to recur.

Very strange behavior indeed...

NX2 v2.2.7; Lr 3.4.1; win7/64; Nikon D300
Photo of Bernhard Erdmann

Bernhard Erdmann

  • 3 Posts
  • 0 Reply Likes
I have portrait oriented NEF files produced by a Nikon D700 and once (2 years ago) edited with Nikon ViewNX (ver 1.3, 1.4, 1.5).

Portrait orientation was set by the camera. Editing was basic exposure and white balance correction as well as some IPTC/XMP data was added.

When I import these files into LR 3.4.1, they are display correctly in portrait mode. In LR I set white balance to tungsten and create a new sidecar file (ViewNX did not create one).

Now I drop this file in LR (just from the catalog) and re-import it. Et voilĂ , now the image is display landscape oriented.

It even happens (being displayed in wrong orientation) when I make a file copy of the NEF/XMP file pair (when it is still present in the LR catalogue) to another folder and import a second time from this folder (unchecked "drop duplicates" in the import dialogue).
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Sounds like the problem first started with a "recent" change in the Nikon software. Its gonna be hard to get this one fixed I bet: People who only use Adobe software don't have the problem, and people who only use Nikon software don't have the problem. Its only the "fence straddlers" getting caught on "the barb".

To Adobe: Although this problem may have its roots in Nikon software, anything you can do to remedy would be appreciated by us who're affected.

I'll try my luck begging Nikon too...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Adobe - this issue has not been remedied @Lr version 3.5RC - I sure hope a fix makes it into the final version of Lr3.5 - its a real nuisance for people who sometimes use NX2 in conjunction with Lightroom.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
New Info: If you have a virtual copy of the NEF selected in Lightroom when the NEF is saved in NX2, Lightroom will erroneously rotate the virtual copy instead of the master - that should provide a clue...