Post your LensType / LensID discoveries here

Started by Phil Harvey, January 08, 2012, 08:37:16 PM

Previous topic - Next topic

ms

Hi, Phil,

first: Thx for the great ExifTool and also to Bogdan for ExifToolGUI, which i both use for about 6 years.

I've found informations on the following lens (used with Nikon D750): Sigma 24-70mm F/2.8 DG OS HSM Art
Lens ID                         : Unknown (C9 48 37 5C 24 24 4B 4E)
Lens Spec                     : 24-70mm f/2.8 G VR [6]
Lens Data Version          : 0204

Greetings from Germany
M.S.

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

alfi


Hi Phil,

I have the Canon version of a Sigma 20mm/1.4 Art (it's updated to the latest firmware). I'm using it on a Canon 5Dmk3 here and the lens info ExifTool displays seems to be a bit off..

With ExifTool 10.40:

$ exiftool -Lens\* -LensType# TZ2_JST_20180724_194421_5d3_ed2b9119.jpg
Lens Type                       : Unknown (368)
Lens Info                       : 20mm f/0
Lens Model                      : 20mm F1.4 DG HSM | Art 015
Lens Serial Number              : 0000000000
Lens                            : 20.0 mm
Lens ID                         : Canon 20mm F1.4 DG HSM | Art 015
Lens                            : 20.0 mm (35 mm equivalent: 19.4 mm)
Lens Type                       : 368

Here at least it shows as a 20mm/1.4 lens. Please note that the LensType is 368 here.

With ExifTool 11.06 it got worse:

$ exiftool -Lens\* TZ2_JST_20180724_194421_5d3_ed2b9119.jpg
Lens Type                       : Sigma 14-24mm f/2.8 DG HSM | A
Lens Info                       : 20mm f/0
Lens Model                      : 20mm F1.4 DG HSM | Art 015
Lens Serial Number              : 0000000000
Lens                            : 20.0 mm
Lens ID                         : Sigma 14-24mm f/2.8 DG HSM | A + 1.4x
Lens                            : 20.0 mm (35 mm equivalent: 19.4 mm)

Now it's recognized as a Sigma, but it became a Sigma 14-24/2.8 Art.

I've dug out an older picture. This is the Sigma 20mm/1.4 Art (with the old firmware version) on the Canon 6D:

$ exiftool -Lens\* -LensType# slide_20160101_000113_6d_img_1748.jpg
Lens Type                       : Canon EF 24mm f/1.4L II or Sigma Lens
Lens Info                       : 20mm f/0
Lens Model                      : Canon EF 24 f/1.4L II
Lens Serial Number              : 0000000000
Lens                            : 20.0 mm
Lens ID                         : Sigma 20mm f/1.4 DG HSM | A
Lens                            : 20.0 mm (35 mm equivalent: 19.7 mm)
Lens Type                       : 250

Here the lens type is 250 and the LensID is correct.

I guess that means the lens type changed with the firmware update (or the 5Dmk3 stores a different lens type for that lens than the 6D, but I have no older pictures of that lens on the 5Dmk3 at hand right now to verify that)?

I've now added a new line for type 368 in /usr/share/perl5/Image/ExifTool/Canon.pm to work around the problem.

Phil Harvey

Thanks.  I'll add another 368 LensType entry for this lens.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

c++

#199
Phil,

I've been looking at some images from a Fuji Finepix S5Pro, and can't get lens data from them.

exiftool -Lens\* -LensType# *.raf
Invalid TAG name: Lens\*


I'll attach a full meta data dump of the file. The s5Pro is Nikon F-Mount and the lens in this case is:
AF-S VR Micro-Nikkor 105mm f/2.8G IF-ED

Is this interesting? If yes there are more lenses on the S5 I can share data of or pass on raws.

Phil Harvey

It seems that some FujiFilm models don't write lens information, and the S5 pro is one of them.

Either that, or there is lens information that ExifTool isn't yet decoding, but to find this I would need a LOT of samples from a lot of different lenses.  You can do this yourself by looking at the -u output and trying to find anything that correlates with the lens.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

c++

Quote from: Phil Harvey on July 25, 2018, 07:37:32 AM
Either that, or there is lens information that ExifTool isn't yet decoding, but to find this I would need a LOT of samples from a lot of different lenses.

I figured that if it's in there it might be interesting what Adobe decodes from it.
Here is RAW converted to DNG
exiftool -Lens* -LensType# *.dng
Lens                            : 105.0 mm f/2.8
Lens Info                       : 105mm f/2.8
Lens Model                      : 105.0 mm f/2.8

Something is in that file it seems.

Phil Harvey

ExifTool decodes the focal-length/aperture information:

> exiftool ../pics/FujiFilmFinePixS5Pro.raf -"*focal*"
Focal Length                    : 70.0 mm
Min Focal Length                : 28
Max Focal Length                : 70
Max Aperture At Min Focal       : 2.8
Max Aperture At Max Focal       : 2.8
Focal Plane X Resolution        : 630
Focal Plane Y Resolution        : 630
Focal Plane Resolution Unit     : cm
Focal Length In 35mm Format     : 105 mm
Focal Length                    : 70.0 mm (35 mm equivalent: 105.0 mm)
Hyperfocal Distance             : 37.16 m


But nothing about the lens model.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

c++

Quote from: Phil Harvey on July 25, 2018, 07:37:32 AM
You can do this yourself by looking at the -u output and trying to find anything that correlates with the lens.

That seems to be all that's in the *.raf and it explains what Adobe gets out of it:
Min Focal Length                : 105
Max Focal Length                : 105
Max Aperture At Min Focal       : 2.8
Max Aperture At Max Focal       : 2.8
Focal Length                    : 105.0 mm (35 mm equivalent: 158.0 mm)

c++

Quote from: Phil Harvey on July 25, 2018, 07:51:40 AM
But nothing about the lens model.
Yeah, thanks that will need to be some manual arrangement based on what is on the actual meta data.

I would have expected Composite:LensID to always give something but here I encounter
Warning: [minor] Tag 'Composite:LensID' not defined
I take it 105.0 mm f/2.8 is not accurate enough to use it for that?

Phil Harvey

Yes.  That would be more along the lines of LensInfo, and not LensID (it isn't identifying the specific lens model).  However, there currently is no Composite LensInfo tag.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Beholder3

Lens tag 8/64 on Pentax is the "HD PENTAX-D FA* 50mm F1,4 SDM AW"

Phil Harvey

Thanks!  I was waiting for this one.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Beholder3

I have a Canon mount Sigma 50 Art here that registers as "Unknown (368) 50mm".
From your documentation I would have expected the Lens to have lens type 180.1   = Sigma 50mm f/1.4 DG HSM | A

Phil Harvey

Thanks.  There are other Sigma lenses that also use ID 368, like the 20mm Art... I'll add the 50mm to the list.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).