Lightroom: EXIF lens data missing for Pentax k10d

  • 1
  • Problem
  • Updated 5 years ago
  • (Edited)
The EXIF lens information is missing. I see the lens specifications in the image file using EXIFtool. There the lens is correctly listed as SIGMA 18-250mm F3.5-6.3 DC Macro HS, but Lightroom doesn't show lens at all in the EXIF information box. Why is this?

Regards, Arne Torp
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of John R. Ellis

John R. Ellis, Champion

  • 3857 Posts
  • 1014 Reply Likes
LR does display the industry-standard EXIF field "Lens Model", which LR displays in the Metadata EXIF panel as "Lens":



Googling 'pentax k10d not showing "lens model" exif' suggests that camera's firmware does not always store any information in the industry-standard EXIF Lens Model field. The "Lens Type" field you're seeing in Exiftool comes from the manufacturer's proprietary MakerNotes, which as a general rule, LR does not display.

You could use Exiftool to copy the Lens Type field to the Lens Model field. Or you could use the ExifMeta plugin to expose the field in LR:

http://www.robcole.com/Rob/ProductsAn...
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
The K10D does show most of the lenses correctly but not the ones from Sigma. So I believe this is not a Pentax problem but maybe more a Sigma/Adobe problem?
If you see the EXIF in the files I can't see any different in the way the Sigma lenses are written oppose to the Pentax.

This is a Pentax:


Here a Sigma listed as only SIGMA lens:


And this Sigma Lens the Lens doesn't even show in Lightroom:


In the EXIF in the file the lens make and model is clearly listed, but Lightroom doens't extract the correct info. I Can't see why not if this is only a textfield

I have heard that this aslo is a problem on newer cameras with Sigma lenses.
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
And by the way - I Use the exiftool but both Lens ID and Lens Type are the same.

Photo of Jim Wilde

Jim Wilde, Champion

  • 294 Posts
  • 97 Reply Likes
You need to read John Ellis's response again. The EXIF field which Lightroom uses is "Lens Model", not "Lens Type" or "Lens ID". Look again at your files to see if the "Lens Model" field is there.
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
No, the Lens Model is not there in any of the files. The working smc PENTAX-DA 15mm F4 ED AL Limited is listed under Lens Type and Lens ID - No Lens Model in there anywhere...
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
Looking at some photos taken with a Nikon D700 and a 105.0mm it seems like the only place in the EXIF info this text is written is in the field Lens So this makes no sense to me.. I can't find a Lens Model anywhere here either.
Another thing is that the text in LR states 105.0mm f/2.8 but in the EXIF field it's only 105mm f/2.8 - so not completely the same.

Photo of Jim Wilde

Jim Wilde, Champion

  • 294 Posts
  • 97 Reply Likes
John Ellis will know better that I do, but I suspect "Lens" and "Lens Model" are variants of the same standardised field. My Canon cameras do write in the "Lens Model" Exif field, but all the Nikon images I've checked seem to write into the "Lens" field.

But it would seem that your Pentax isn't writing into either of these fields, as a result Lightroom can't detect the lens type.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3857 Posts
  • 1014 Reply Likes
The labels that LR uses in the Metadata pane are not always exactly the same as what you'll see using Exiftool. The "Lens" field in LR's Metadata panel comes from the industry-standard EXIF:LensModel field in the file's metadata.

If you run:

exiftool -a -G file

you should see a line that looks like:

[EXIF] Lens Model : 105.0 mm f/2.8
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
I can only find any lens information under [MarkerNotes] and [Composite]
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
Well but Lightroom does detect the lens type - just not the Sigma Lens.
Even though it seems to be adding as Lens Type (The Sigma lens showing as Sigma Lens is written as this under the field Lens Type)
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
So
Canon writes to Lens Model
Nikon writes to Lens
Pentax Writes to Lens Type
Photo of John R. Ellis

John R. Ellis, Champion

  • 3857 Posts
  • 1014 Reply Likes
I oversimplified and thus got wrong some details about how LR handles the Metadata panel's "Lens" field. But the workarounds I suggested still apply: Use Exiftool to copy MakerNotes:LensType into EXIF:LensModel, or use Rob Cole's ExifMeta plugin to expose MakerNotes in LR.

Gory details:

When referring to fields in a file's metadata, it's very important to specify which section they're coming from -- EXIF, XMP, or the manufacturer-specific, non-standard MakerNotes. (By default, Exiftool doesn't show you the section name -- you have to use the -a -G flags. What Exiftool shows as "Composite" is its own synthesis of the actual fields stored in the file.)

There are several possible metadata fields that LR may use to display the "Lens" field in its Metadata panel, and more than one of these fields may be present in a file:

XMP:Lens -- This field is defined by the XMP industry standard. It is generally not written by cameras, just software like LR or Bridge. But if it exists, LR gives it priority over the other fields.

EXIF:LensModel -- this field is defined by the EXIF industry standard and generally written by many cameras. LR uses this field if XMP:Lens doesn't exist.

MakerNotes -- MakerNotes are non-standard fields written by many cameras. They are proprietary, meaning they are defined by the manufacturers and often not well-documented. Exiftool goes to great lengths to reverse engineer these fields. In general, LR does not understand nearly as much MakerNotes as Exiftool.

LR uses MakerNotes if the XMP:Lens and EXIF:LensModel fields don't exist. Here's what I've observed how LR handles the MakerNotes lens fields in various sample files:

- Nikon D700: Contains MakerNotes:Lens, which LR reads.

- Canon 50D: Contains both MakerNotes:LensType and MakerNotes:LensModel. LR gives precedence to MakerNotes:LensModel, but will use :LensType if :LensModel is blank.

- Pentax K10D: Contains MakerNotes:LensType, which LR reads, at least sometimes. In the sample image I have, LR reads "smc PENTAX-F 35-105mm F4-5.6" for a lens that Exiftool identifies as MakerNotes:LensType: "smc PENTAX-F 35-105mm F4-5.6 or Sigma or Tokina Lens" and MakerNotes:LensId: "Sigma AF 28-300mm F3.5-6.3 DG IF Macro". So it appears in this case that LR is reading the :LensType field, while Exiftool is applying additional heuristics to come up with a different answer.

To get a sense for the approximate, heuristic nature of reverse engineering MakerNotes lens information, see this page in the Exiftool documentation:

http://www.sno.phy.queensu.ca/~phil/e...

In your file, LR is ignoring MakerNotes:LensType field, perhaps because its reverse-engineered rules aren't as complete as Exiftool's.
Photo of Arne Torp

Arne Torp

  • 10 Posts
  • 0 Reply Likes
Ok, then I understand.

Thank you for all your help. A bit wiser anyways.