Before the rush

Before the rush
by evan-pak

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I thought this would do it:

$ exiftool -XMP:HierarchicalSubject="people|Test" Test.jpg
    1 image files updated

$ exiftool -G -j -n Test.jpg | grep Test
  "SourceFile": "Test.jpg",
  "File:FileName": "Test.jpg",
  "XMP:HierarchicalSubject": "people|Test",
  "XMP:RawFileName": "Test.jpg",

But the keyword doesn't show up in Lightroom after reimporting the metadata into Lightroom. How do I make this work?

I don't believe the image will make a difference, but if it does, I'm using this as the test image.

share|improve this question
I am assuming you are talking about Phil Harvey's ExifTool( If so, have you asked this question on the ExifTool Forum( I would assume you would get an audience that is much more familiar with this type of coding then a bunch of photographers here :) – dpollitt Aug 25 '11 at 0:57
Does this question still provide any value? The member who asked it, mikj, only visited two days, and has not returned since asking. Should we close this? – jrista Nov 22 '11 at 17:51

This question was re-asked and answered in the ExifTool forum:,3465.0.html

It looks like LR may be ignoring the XMP in favour of the IPTC.  There are 2 things you can do:

1) delete all IPTC and use XMP only.  (easy, but not as compatible with other software)

2) use exiftool to also update the IPTC Keywords and IPTCDigest.  Use "-IPTCDigest=new" to update the Photoshop IPTCDigest whenever you change anything in the IPTC (this is mentioned in the Photoshop tag name documentation).

-- Phil [Harvey, author of ExifTool]

share|improve this answer

I hope my answer will not be marked as adv. by moderators but I suggest you to check out our Daminion to fix your problem with hierarchical keywords. The program is free.

Both Daminion and Lightroom can map tags/keywords to the XMP. So you workflow will be:

  • Import your photos to Daminion

  • Perform any manipulations with keywords and change their hierarchical structure. This way might be more convenient than interacting with command line utility. Btw we use ExifTool to map the tags/keywords to Camera RAW formats directly without sidecar files.

  • Wait a few secs while Daminion automatically syncs your keyword changes back to the XMP

  • Re-Import the files back into Lighroom

Really hope this helps

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.