Skip to main content
Jeff A. Goulden
Inspiring
August 31, 2022
Open for Voting

P: Include Subject Distance Metadata

  • August 31, 2022
  • 35 replies
  • 3298 views

I'm sure this has been discussed before but I was not able to find any previous posts.  Since the Fall of 2013 Lightroom no longer captures the subject distance into the Lightroom metadata.  I remember hearing that subject distance was not considered to be accurate data and that's why it was dropped.  I reviewed a bunch of my older images and subject distance seems reasonably accurate to me.  I'd like to know who and why the decision was made to drop this data.  And what it would take to once again start capturing it upon import.  If the camera records data, it should be captured by Lightroom during import.

35 replies

Jeff A. Goulden
Inspiring
January 1, 2023

John, thank you so much for your help.  I uploaded those same two raw files to Dropbox and I emailed you the link.

johnrellis
Legend
January 1, 2023

"I think my custom metadata panel uses "com.adobe.subjectDistance".  Is that the same as Exif:SubjectDistance."

 

Yes.

 

"Is there any way I can access that data to display in my metadata panel?"

 

No, the Metadata panel won't display any of the proprietary fields in MakerNotes.  You'll have to use Any Filter (good for filtering and searching many photos at once) or the Metadata Viewer plugin to display all the metadata fields in one photo at a time.  Both plugins use the authoritative Exiftool utility to access fields within the photo file.

 

johnrellis
Legend
January 1, 2023

"Okay here's a test using an older picture with a definite distance of 3.16 meters."

 

That's very curious. The photo appears not to have the field EXIF:SubjectDistance and yet LR is displaying a value for it.

 

Could you please upload that photo and new sample photo that doesn't display Subject Distance to Dropbox, Google Drive, or similar and post the sharing link here (or send it to me in a private message)?  I'd like to determine precisely what's going on.

Jeff A. Goulden
Inspiring
January 1, 2023

John, Okay here's a test using an older picture with a definite distance of 3.16 meters.  I really don't think anything changed on the D200.  I think that the Lightroom import process changed sometime in 2011 with a new release.  The data provided by MakerNotes:FocusDistance looks reasonable.  Is there any way I can access that data to display in my metadata panel?

Jeff A. Goulden
Inspiring
December 31, 2022

John, it looks like extracting Exif:SubjectDistance returned "no value" for both the older picture as well as the newer one.  And yet when I display using my custom metadata panel, the older picture returned Subject Distance : infinity.  That seems strange.  I think my custom metadata panel uses "com.adobe.subjectDistance".  Is that the same as Exif:SubjectDistance.

 

I think I will run the same test on a file that has a real subject distance rather than infinity.

johnrellis
Legend
December 31, 2022

"It looks like EXIF:SubjectDistance doesn't return a value."

 

The Metadata panel displays what's in EXIF:SubjectDistance, so if that's not present, LR won't display anything. I'm not sure why older photos from the D200 would have that field but newer ones not -- perhaps a firmware update at some point?  

 

"I'm not sure of the accuracy of MakerNotes:FocusDistance.  I don't think the bird in the picture was 7.94 meters (26 feet) away from me.  It was more like 15 feet away."

 

I think the focus distance measured by the cameras is often inaccurate, which is why Adobe removed it from the Metadata panel way back in LR 3.4.1.   But I'm not expert in that issue...

Jeff A. Goulden
Inspiring
December 31, 2022

John, it looks like EXIF:SubjectDistance doesn't return a value.  I'm not sure of the accuracy of MakerNotes:FocusDistance.  I don't think the bird in the picture was 7.94 meters (26 feet) away from me.  It was more like 15 feet away.

 

johnrellis
Legend
December 31, 2022

[This post contains formatting and embedded images that don't appear in email. View the post in your Web browser.]

 

That indicates the camera has recorded in MakerNotes:FocusDistance (a non-standard, Nikon-proprietary field) 3.76 m in one photo and 7.94 m in the other:

 

 

Change MakerNotes:FocusDistance to EXIF:SubjectDistance and post a screenshot of that.

 

Jeff A. Goulden
Inspiring
December 31, 2022

John, here's a screenshot of two files.  The one on the left was taken in 2011 and shows a subject distance of infinity in my custom metadata panel.  The one on the right was taken in 2022 and doesn't show a focus distance.  I'm not sure of what I am seeing in AnyFilter

johnrellis
Legend
December 31, 2022

"When I said that my pictures before 2013 had subject distance and the pictures after that didn't I was
referring to the same Nikon D200. I don't think my D200 is causing the problem. I use a custom metadata panel that I set up in Lightroom. It includes subject distance. My D200 pictures taken before 2013 have subject distance displayed in Lightroom."

 

I only have four sample D200 photos (one from 2007?), and none of them contain EXIF:SubjectDistance.

 

You can see if the later photos contain the field EXIF:SubjectDistance using the Any Filter plugin's Filter command, as shown in the screenshots above.

 

Alternatively, upload one of those later photos to Dropbox, Google Drive, or similar and post the sharing link here, and I'll take a look at it.