14 Replies Latest reply: Feb 28, 2011 9:12 PM by Jack II RSS

    Display subject distance in Lightroom metadata

    pwillyamsnz

      The EXIF data in the Lightroom database includes SubjectDistance but this does not appear in the Metadata windows.  It would be very handy if it was.

       

      (forgive me if I have overlooked it).

      (note: SubjectDistance is not recorded for all camera/lens combinations, eg 7D and Tamron does not)

       

      As a further and natural extension, you could then easily calculate and display Depth of Field estimates (Near/Far limits and total DOF)

        • 2. Re: Display subject distance in Lightroom metadata
          pwillyamsnz Community Member

          Does anyone at Adobe read these requests?

           

          I am thinking this is not difficult: just add the data for EXIF:SubjectDistance to the Metadata tab, say under Focal Length.

           

          I realise that it is not always available nor reliable, depending on the camera and lens creator.

           

          Thanks Rob for your efforts, but I expect to get this as standard product, not a plug-in of unknown quality.

          • 3. Re: Display subject distance in Lightroom metadata
            areohbee Community Member

            pwillyamsnz,

             

            I think this metadata item was revoked by Adobe since it was unreliable / misleading.

             

            But, that doesn't mean they won't reinstate it if they find a way to improve it, or if too many users complain...

             

            ExifMeta is intended as an interim solution, not a substitute... and, I assure you - its of the highest quality ;-}

             

            Rob

            • 4. Re: Display subject distance in Lightroom metadata
              pwillyamsnz Community Member

              The metadata might be inaccurate, but that I would squarely blame on the camera!

               

              This post has had a number of views, so if you have the same issue, post a quick "Yes I want it now" reply if you want to see Subject Distance on the Metadata tab. Hopefully that will waken the giant!

              • 5. Re: Display subject distance in Lightroom metadata
                pwillyamsnz Community Member

                Rob, no disrespect intended!!!

                 

                I took a different approach and queried the Lightroom catalog through Excel and a SQLLite ODBC connection - or just look up the EXIF on the JPG file.

                • 6. Re: Display subject distance in Lightroom metadata
                  areohbee Community Member

                  What was revealed when you queried the catalog? - did you see subject distance in there?

                  • 7. Re: Display subject distance in Lightroom metadata
                    areohbee Community Member

                    I just checked - Lightroom 3.3 does display subject distance in Lightroom metadata.

                    • 8. Re: Display subject distance in Lightroom metadata
                      pwillyamsnz Community Member

                      Still not quite there - I installed LR3.3 happily but cannot find Subject Distance in the metadata anywhere.

                       

                      Where/how did you find it?

                      • 9. Re: Display subject distance in Lightroom metadata
                        areohbee Community Member

                        I wouldn't believe this if you told it to me, but here goes:

                         

                        It seems to have disappeared.

                         

                        I remember specifically noticing the value was off by .01 between what Lightroom was reporting and what ExifMeta was reporting, but now I can't find it anywhere!

                         

                        Ah - I found it! - I have no idea why sometimes it is present, and sometimes it is not.

                         

                        _sub_dist.gif

                         

                        R

                        • 10. Re: Display subject distance in Lightroom metadata
                          pwillyamsnz Community Member

                          Digging deeper ...

                           

                          The Lightroom database has a table called AgHarvestedEXIFData, which has columns for aperture, focal length etc but not subject distance.

                           

                          There is also a table called agAdditionalMetadata.  This has a column XMP which is xml format EXIF data etc, including <SubjectDistance>

                           

                          So the data is in the database but not in the table which is used by the MetaData tab in the Default view option.

                           

                          So why does it sometimes show for you?

                           

                          The clue is the heading Shooting Info on your screenshot.  I don't get that.  However if I switch though to the EXIF option instead of Default the list of EXIF data fields changes, enough to make me think it is using different code.  I think in some circumstances it is clever enough to extract the data from the XMP field and push it into this form. I picked up a few 'Shooting Info' threads in the forums, bemoaning the loss of this data too.  Why sometimes and not others?  It might be your camera model/lens/focus mode, but possibly did you shoot tethered?

                           

                          Here is a sample of some of the XMP data - as you can see there is a lot of useful shooting information available but not accessible!

                           

                           

                          <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2-c020 1.124078, Tue Sep 11 2007 23:21:40        ">
                          <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
                            <rdf:Description rdf:about=""
                              xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
                             <tiff:Make>Canon</tiff:Make>
                             <tiff:Model>Canon EOS 7D</tiff:Model>
                             <tiff:Orientation>1</tiff:Orientation>
                             <tiff:ImageWidth>5184</tiff:ImageWidth>
                             <tiff:ImageLength>3456</tiff:ImageLength>
                            </rdf:Description>
                            <rdf:Description rdf:about=""
                              xmlns:exif="http://ns.adobe.com/exif/1.0/">
                             <exif:ExifVersion>0221</exif:ExifVersion>
                             <exif:ExposureTime>1/160</exif:ExposureTime>
                             <exif:ShutterSpeedValue>7321928/1000000</exif:ShutterSpeedValue>
                             <exif:FNumber>5/1</exif:FNumber>
                             <exif:ApertureValue>4643856/1000000</exif:ApertureValue>
                             <exif:ExposureProgram>3</exif:ExposureProgram>
                             <exif:ISOSpeedRatings>
                              <rdf:Seq>
                               <rdf:li>100</rdf:li>
                              </rdf:Seq>
                             </exif:ISOSpeedRatings>
                             <exif:DateTimeOriginal>2010-12-30T15:56:15.83+13:00</exif:DateTimeOriginal>
                             <exif:DateTimeDigitized>2010-12-30T15:56:15.83+13:00</exif:DateTimeDigitized>
                             <exif:ExposureBiasValue>0/1</exif:ExposureBiasValue>
                             <exif:MaxApertureValue>4625/1000</exif:MaxApertureValue>
                             <exif:SubjectDistance>317/100</exif:SubjectDistance>
                             <exif:MeteringMode>5</exif:MeteringMode>
                             <exif:Flash rdf:parseType="Resource">
                              <exif:Fired>False</exif:Fired>
                              <exif:Return>0</exif:Return>
                              <exif:Mode>2</exif:Mode>
                              <exif:Function>False</exif:Function>
                              <exif:RedEyeMode>False</exif:RedEyeMode>
                             </exif:Flash>
                             <exif:FocalLength>70/1</exif:FocalLength>
                             <exif:CustomRendered>0</exif:CustomRendered>
                             <exif:ExposureMode>0</exif:ExposureMode>
                             <exif:WhiteBalance>0</exif:WhiteBalance>
                             <exif:SceneCaptureType>0</exif:SceneCaptureType>
                             <exif:FocalPlaneXResolution>5184000/907</exif:FocalPlaneXResolution>
                             <exif:FocalPlaneYResolution>3456000/595</exif:FocalPlaneYResolution>
                             <exif:FocalPlaneResolutionUnit>2</exif:FocalPlaneResolutionUnit>
                             <exif:PixelXDimension>5184</exif:PixelXDimension>
                             <exif:PixelYDimension>3456</exif:PixelYDimension>
                            </rdf:Description>
                            <rdf:Description rdf:about=""
                              xmlns:xap="http://ns.adobe.com/xap/1.0/">
                             <xap:ModifyDate>2010-12-30T15:56:15.83+13:00</xap:ModifyDate>
                             <xap:CreateDate>2010-12-30T15:56:15.83+13:00</xap:CreateDate>
                             <xap:MetadataDate>2010-12-30T19:48:23.959-13:00</xap:MetadataDate>
                             <xap:Rating>2</xap:Rating>
                            </rdf:Description>
                            <rdf:Description rdf:about=""
                              xmlns:dc="http://purl.org/dc/elements/1.1/">
                             <dc:creator>
                              <rdf:Seq>
                               <rdf:li>Paul Willyams</rdf:li>
                              </rdf:Seq>
                             </dc:creator>
                             <dc:rights>
                              <rdf:Alt>
                               <rdf:li xml:lang="x-default">Copyright Paul Willyams</rdf:li>
                              </rdf:Alt>
                             </dc:rights>
                            </rdf:Description>
                            <rdf:Description rdf:about=""
                              xmlns:aux="http://ns.adobe.com/exif/1.0/aux/">
                             <aux:SerialNumber>670502410</aux:SerialNumber>
                             <aux:LensInfo>28/1 135/1 0/0 0/0</aux:LensInfo>
                             <aux:Lens>EF28-135mm f/3.5-5.6 IS USM</aux:Lens>
                             <aux:LensID>178</aux:LensID>
                             <aux:ImageNumber>0</aux:ImageNumber>
                            <aux:ApproximateFocusDistance>317/100</aux:ApproximateFocusDistance>
                             <aux:FlashCompensation>0/1</aux:FlashCompensation>
                             <aux:Firmware>1.1.0</aux:Firmware>
                            </rdf:Description>

                          etc

                          • 11. Re: Display subject distance in Lightroom metadata
                            areohbee Community Member

                            pwillyamsnz,

                             

                            Thanks for the info.

                             

                            A couple things:

                             

                            - The "Shooting Info" heading in the screenshot comes from the ExifMeta plugin which is also serving as my "metadata tagset factory". The heading in the screenshot springs from these lines in the ExifMeta configuration file:

                             

                            _ts1[#_ts1 + 1] = '{ "com.adobe.label", label = "Shooting Info" }'
                            _ts1[#_ts1 + 1] = "'com.adobe.shutterSpeedValue'"
                            _ts1[#_ts1 + 1] = "'com.adobe.apertureValue'"
                            _ts1[#_ts1 + 1] = "'com.adobe.brightnessValue'"
                            _ts1[#_ts1 + 1] = "'com.adobe.exposureBiasValue'"
                            _ts1[#_ts1 + 1] = "'com.adobe.flash'"
                            _ts1[#_ts1 + 1] = "'com.adobe.exposureProgram'"
                            _ts1[#_ts1 + 1] = "'com.adobe.meteringMode'"
                            _ts1[#_ts1 + 1] = "'com.adobe.ISOSpeedRating'"
                            _ts1[#_ts1 + 1] = "'com.adobe.focalLength'"
                            _ts1[#_ts1 + 1] = "'com.adobe.focalLength35mm'"
                            _ts1[#_ts1 + 1] = "'com.adobe.lens'"
                            _ts1[#_ts1 + 1] = "'com.adobe.subjectDistance'"

                             

                            i.e. I have explicitly specified the section label and each item to be in it.

                             

                            Although I haven't scrutinized anything under the hood to identify the criteria which determine when it is present and when it is not. So far, it seems freakun random - some pic's that were presumably handled the same way (same camera, same shoot...) have it and some not. I suspect there is some difference in handling that I'm not aware of, but it could just be a data thing too, I suppose, but I'm getting pretty far out on the proverbial limb at this point...

                             

                            R

                            • 12. Re: Display subject distance in Lightroom metadata
                              Jack II Community Member

                              Thanks to all.

                               

                              I don't know either, but I use the subject distance for several things, among them depth of foeld checks to see if I should have stopped down more.  As it stands now I have to pull up LR2.7 to get the distance and it is always there.

                               

                              Is there a chance this might become the case whrn LR3.3 appears?

                               

                              Thanks again,

                               

                              Jack

                              • 13. Re: Display subject distance in Lightroom metadata
                                areohbee Community Member

                                I really dunno.

                                 

                                But, ExifMeta3 supports every bit of metadata, including subject/focus-distance and depth-of-field (and hyperfocal distance...)

                                • 14. Re: Display subject distance in Lightroom metadata
                                  Jack II Community Member

                                  Thanks for the link to your site.  I'll try the software. 

                                   

                                  Jack