8 Replies Latest reply: Feb 23, 2013 9:52 AM by Victoria Bampton RSS

    updating XMP sidecar-file for NEF files

    snahphoto Community Member

      Hello,

       

      I observed that when using NEF image files (Nikon) the XMP sidecar files are not being updated with at least the following 2 tags:

      photoshop:Urgency

      MicrosoftPhoto:Rating

       

      1. The NEF-images-files are properly imported into the LR-catalog. Everything seems alright.

      2. Upon saving Metadata to file the xmp-sidecar file is written correctly reflecting the values for these 2 tags.

      So far so good.

      3. Upon changing the Label and/or the Rating in LR and again saving the Metadata to file, these 2 tags are NOT updated. (Label and Rating of course are updated properly).

       

      I wonder why this is happening, since eg. Adobe Photoshop CS5 uses the Tag 'Urgency'.

      Also here using a TIF file the tag 'Urgency' (File/Image Info/Origin) is NOT being updated reflecting the chosen value in the LR catalog.

       

      To me it appears as LR is reading all tags from the image-file itself and its catalog entry and then writes/updates the values depening on the modifydate from each source (the youngest one wins).

      Since the LR catalog has no entry for 'photoshop:Urgency' and 'MicrosoftPhoto:RatingPercent' (is that correct?) the two values cannot be updated.

       

      Is there a way to instruct LR to update these 2 tags in the XMP sidecar file as well?

      I'm afraid there isn't since this tag has been removed with the introduction of IPTC core 1.0 in 2005.

      A useful workaround would be helpful to keep Metadata in synch between LR and Nikon NX2 (View & Capture).

      I am quite certain this could be solved using Exiftool, but I'd much prefer to avoid that procedure.

       

      Any hints and/or ideas are appreciated.

       

      Environment: LR Verion 3.6 / Windows7

        • 1. Re: updating XMP sidecar-file for NEF files
          ssprengel Community Member

          Is your problem that the SDK cannot update things or that LR, itself, cannot update things, regardless of the SDK being used or not?

           

          And just to clarify, do the XMP files containing the two tags in question exist prior to importing into LR, or does LR create them when you import and subsequently save the metadata?  LR not supporting all tags in the world seem reasonable, but LR creating tags once and not keeping them up-to-date seems less reasonable.

          • 2. Re: updating XMP sidecar-file for NEF files
            Rob Cole Community Member

            Consider posting in Photoshop Lightroom forum - this is the Lightroom SDK forum (for plugin authors).

            • 3. Re: updating XMP sidecar-file for NEF files
              snahphoto Community Member

              Thanks for reply.

              Here my answers to your questions:

              -Currently the SDK 3.0 is not in use (but it will be either to resolve this oddity or the latest once this is resolved)

              -I verified that the xmp-sidecar files do not exist prior to importing to LR

              -I also verified that the NEF files are 'virgin', freshly out of the camera. Appart from the copy-process (FileManager) there was no software touching them files.

              -LR creates the first xmp-sidecar files for these NEFs upon saving the metadata.

              -I agree, LR can and will not support all tags in the world. But since LR is writing them into its own Metadata output file, then it should at least support their own tag (Adobe) even though it (photoshop:Urgency) has been deprecated in 2005.

               

               

              ... but LR creating tags once and not keeping them up-to-date seems less reasonable.

               

               

               

              Yes I totally agree and that's why I writing this post.

              Here is in detail what happens:

               

              The original file is NEF and contains:

              - RatingPercent: 0

              - it does NOT contain any of the other tags discussed here yet.

               

              In Nikon View NX2 only label 1 (Select) and rating **  are applied.

              Now the NEF contains:

              - RatingPercent:     25

              - Label:     Select

              - Rating:     2

               

              Import to Lightroom 3.6 reflects Label and Rating correctly.

               

              Save Metadata to file creates an xmp-sidecar file which now contains the following:

              - photoshop:Urgency="1"     (this is only created when a Label has been set, but NOT when Rating has been set only)

              - MicrosoftPhoto:Rating:"25"

              - xmp:Label:"Select"

              - xmp:Rating:"2"

               

              So far so good.

               

              In LR only change Label to 4 (Approved) and Rating to **** (Stars) and save Metadata to file (updating the existing xmp-sidecar file).

              Now it reads as follows:

              - photoshop:Urgency="1"

              - MicrosoftPhoto:Rating:"25"

              - xmp:Label:"Approved"

              - xmp:Rating:"4"

               

              My interpretation/conclusion of this:

               

              1. the tag 'RatingPercent' (=MicrosoftPhoto:Rating) originates from the original NEF and is imported by LR.

               

              2. Nikon View NX2 updates this latter tag just fine.

               

              3. in LR upon writing the xmp-sidecar file:

                        - a new tag 'Photoshop:Urgency' is created and written by LR (presumably interpreting the tag Label).

                        - the tag 'MicrosoftPhoto:Rating' is written by LR (presumably interpreting the tag Rating).

               

              4. Even though LR writes the tags 'Photoshop:Urgency' and 'MicrosoftPhoto:Rating' to the xmp-sidecar file, LR does not reflect the 'changes' applied to either of the two tags. The 'changes' are not really changes as LR does not provide an option to manipulate the values of these 2 tags. Of course: one tag is deprecated the other is from Microsoft (member of MWG).

               

              5. Nikon is running their own show. I want and have to use Nikon software because their RAW-converter results are superior than that of LR.

               

              All this appears very odd to me.

              I am still puzzled and wonder about a reasonable explanation (the base eventually leading to solution of this oddity).

              • 4. Re: updating XMP sidecar-file for NEF files
                Rob Cole Community Member

                Sorry for replying without reading thoroughly, but does this have anything to do with the plugin SDK (it seems not to).

                • 5. Re: updating XMP sidecar-file for NEF files
                  snahphoto Community Member

                  ... your right Rob, this indeed has nothing to do with the SDK. Possibly a solution might have to do with it, I really don't know.

                  I chose this forum because I found the LR Forum is very general and for this kind of specialty question/observation I'd like to communicate with people who (I assume) do have profound knowledge of LR. Plug-in developers are that kind of people - and you're one of them.

                  Sorry for not being a profound knowledge carrier myself - I may get there someday.

                  I am open for suggestions to post this post somewhere else or have it moved, no problemo - but please not into the general pot where it'd drown.

                  • 6. Re: updating XMP sidecar-file for NEF files
                    Rob Cole Community Member

                    snahphoto wrote:

                     

                    Possibly a solution might have to do with it

                    Yes - a solution would require use of a plugin (and/or exiftool...), to translate metadata from one "domain" to the other.

                     

                    snahphoto wrote:

                     

                    and you're one of them.

                    Thanks .

                     

                     

                    PS - I might consider adding such a feature to my NxToo plugin, but it probably won't happen, since I no longer use NX2 for raw conversion (I think Lr4 is better). I still use it for cooked editing, but I have no need for metadata sharing (other than maintaining Lr metadata upon round trip to NX2). Still, the source code is available if you want to learn to make such a change - if you do, I'd be happy to fold it in for others, or future you...

                     

                     

                    Rob

                    • 7. Re: updating XMP sidecar-file for NEF files
                      John R. Ellis CommunityMVP

                      See my reply in http://forums.adobe.com/thread/1158866 . Please continue the discussion there.

                      • 8. Re: updating XMP sidecar-file for NEF files
                        Victoria Bampton CommunityMVP

                        (Thread moved to LR forum)