Bug 512351 - Lens ID not picked up for Nikon Z50
Summary: Lens ID not picked up for Nikon Z50
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Exif (other bugs)
Version First Reported In: 8.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-19 16:55 UTC by Andrew Howarth
Modified: 2025-12-25 10:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:


Attachments
Shows a Z50 image properties with Lens data unavailable (73.42 KB, image/png)
2025-11-19 16:55 UTC, Andrew Howarth
Details
Sample Nikon Z50 image where lens ID is not detected. (2.12 MB, image/jpeg)
2025-11-19 17:49 UTC, Andrew Howarth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Howarth 2025-11-19 16:55:59 UTC
Created attachment 186961 [details]
Shows a Z50 image properties with Lens data unavailable

SUMMARY
Lens ID for images from the Nikon Z50 is not being picked up. Symptoms: "Lens:" shows as "unavailable" in Photograph Properties; Advanced search shows no images from Z50 when searching by lens; Lens ID is not shown in slideshow.

Lens info is present in numerous fields in the metadata (e.g. "Makernote->Lens", "Makernote"->"Lens ID Number", "ExifTool"->"LensID").

Tried enabling "Use ExifTool backend to read metadata from files" in the settings but it doesn't help.

STEPS TO REPRODUCE
1. Take a picture with a Nikon Z50
2. Look under Properties, "Lens:" will show as "unavailable"

OBSERVED RESULT
Lens info not available in Advanced Search or in slideshow annotation

EXPECTED RESULT
Lens info available

SOFTWARE/OS VERSIONS
Windows: 11 25H2, digiKam 8.8.0

ADDITIONAL INFORMATION
Thank you!
Comment 1 Maik Qualmann 2025-11-19 17:21:00 UTC
We need a sample image.

The one sample image I have, taken with a Z50, shows a NIKKOR Z DX 16-50mm lens without any problems.

You might have a lens that Exiv2 doesn't yet recognize. Keep in mind that we still use Exiv2 internally to decode the metadata.

Maik
Comment 2 Andrew Howarth 2025-11-19 17:49:22 UTC
Created attachment 186962 [details]
Sample Nikon Z50 image where lens ID is not detected.

Note that the attached image was generated by Nikon NX Studio v1.10 from a RAW NEF file, and is not out-of-camera. The RAW NEF file also does not have its lens ID detected by digiKam.
Comment 3 Andrew Howarth 2025-11-19 17:54:47 UTC
(In reply to Maik Qualmann from comment #1)
> We need a sample image.
> 
> The one sample image I have, taken with a Z50, shows a NIKKOR Z DX 16-50mm
> lens without any problems.
> 
> You might have a lens that Exiv2 doesn't yet recognize. Keep in mind that we
> still use Exiv2 internally to decode the metadata.
> 
> Maik

Thanks for your help. I have attached a sample JPG image created by Nikon NX Studio from a RAW NEF file.

The lenses I've used are all picked up by digiKam on another Nikon camera (D7100), but the difference could be that my images from the Z50 are taken with F-mount lenses using the Nikon FTZ II adapter. Perhaps Nikon writes the lens info differently when using the FTZ vs native Z-lenses?
Comment 4 Maik Qualmann 2025-11-19 18:02:48 UTC
Git commit 6ae5da5793833b833d567a08043694d501a784b6 by Maik Qualmann.
Committed on 19/11/2025 at 18:02.
Pushed by mqualmann into branch 'master'.

add another Nikon Makernotes tag to detect lens model
FIXED-IN: 8.9.0

M  +1    -1    NEWS
M  +2    -0    core/libs/metadataengine/dmetadata/dmetadata_photo.cpp

https://invent.kde.org/graphics/digikam/-/commit/6ae5da5793833b833d567a08043694d501a784b6
Comment 5 Maik Qualmann 2025-11-19 18:07:06 UTC
A Windows pre-release of digiKam-8.9.0 with this change will be available for testing around tomorrow.

https://files.kde.org/digikam/

Note that the metadata of the affected images must be reread so that the lens model is added to the database (Item/Album Menu -> Reread metadata from files).

Maik
Comment 6 Andrew Howarth 2025-11-19 18:08:37 UTC
(In reply to Maik Qualmann from comment #5)
> A Windows pre-release of digiKam-8.9.0 with this change will be available
> for testing around tomorrow.
> 
> https://files.kde.org/digikam/
> 
> Note that the metadata of the affected images must be reread so that the
> lens model is added to the database (Item/Album Menu -> Reread metadata from
> files).
> 
> Maik

Brilliant, thanks very much for the quick turnaround!