Darktable 4.0.1 no lensfun support for nikon z5 (ubuntu snap issue?)

Hi,

After upgrading from darktable 3.8.1 to 4.0.1 there no longer appears to be support for the nikon z5?

Did something change? Just wondering why support was dropped?

Thanks,
Tom

What I can see there is raw support

I’m using darktable on ubuntu and it doesn’t list support in the lens correction module for any of the z series nikon cameras. Perhaps I’m missing something?

It does have support for the lens (kit 24/70 f4) which is odd. :slight_smile:

Thanks for the reply.

How could I confirm that my instance of the app contains the same information as posted above?

I have installed via the ubuntu snap stable repo.

darktable-nikonz5

Thought you couldn’t open your raw files at all, when you talked about camera support.

I am not using snap, so I don’t know where it has the Lensfun database.

You have some common pathes at the bottom here

Thanks Peter!

I located the lensfun db at /snap/darktable/85/usr/share/lensfun/version_1 and can confirm it does not contain the nikon z5 (or any z series camera).

I’m going to try install via flatpak and see if this issue persists. Will update once complete.

FYI: I have removed and reinstalled darktable via the ubuntu software package against the stable snap store but it did not fix this.

You can just copy from Github lensfun/mil-nikon.xml at master · lensfun/lensfun · GitHub

Change lensdatabase version=“2” to lensdatabase version=“1” because darktable will not accept version 2 out of the box.

To download the whole file, choose View raw. Then right click and save the page as xml file.

Or cherry pick the camera and lenses you want and copy paste them into your mil-nikon.xml file.

Thanks for the idea Peter. Happy to mess around but would be nice to find a simple solution for others and or get the source issue fixed.

Having switched to Flatpak version the issue is now resolved. So seems to be either a strange issue with my local system or an issue with the snap.

Now when I think about it, the normal way to update is lensfun: Updating Lensfun's database: lensfun‑update-data

Perhaps not working with snap.

This is the state of the lensfun database with regard to Nikon Z cameras and lenses. This is from the current version_2 database from the source pulled by lensfun-update-data; version_1 contains the same entries. First, the camera models (ignore the Nikon 1 cameras):

glenn@bena:~/.rawproc/version_2$ grep model mil-nikon.xml |grep Nikon
        <model>Nikon 1 S1</model>
        <model>Nikon 1 V1</model>
        <model>Nikon 1 J1</model>
        <model>Nikon 1 AW1</model>
        <model>Nikon 1 S2</model>
        <model>Nikon 1 V2</model>
        <model>Nikon 1 J2</model>
        <model>Nikon 1 V3</model>
        <model>Nikon 1 J3</model>
        <model>Nikon 1 J4</model>
        <model>Nikon 1 J5</model>
        <model>Nikon Z 5</model>
        <model>Nikon Z 6</model>
        <model>Nikon Z 6_2</model>
        <model>Nikon Z 7</model>
        <model>Nikon Z 7_2</model>
        <model>Nikon Z 9</model>
        <model>Nikon Z 30</model>
        <model>Nikon Z 50</model>
        <model>Nikon Z fc</model>

Then, the lenses:

glenn@bena:~/.rawproc/version_2$ grep model mil-nikon.xml |grep NIKKOR
        <model>NIKKOR Z 14-24mm f/2.8 S</model>
        <model>NIKKOR Z 14-30mm f/4 S</model>
        <model>NIKKOR Z 24-70mm f/2.8 S</model>
        <model>NIKKOR Z 24-70mm f/4 S</model>
        <model>NIKKOR Z 20mm f/1.8 S</model>
        <model>NIKKOR Z 50mm f/1.8 S</model>
        <model>NIKKOR Z 70-200mm f/2.8 VR S</model>
        <model>NIKKOR Z 85mm f/1.8 S</model>
        <model>NIKKOR Z 24-200mm f/4-6.3 VR</model>
        <model>NIKKOR Z DX 16-50mm f/3.5-6.3 VR</model>
        <model>NIKKOR Z 35mm f/1.8 S</model>
        <model>NIKKOR Z 40mm f/2</model>
        <model>NIKKOR Z MC 105mm f/2.8 VR S</model>
        <model>NIKKOR Z 28-75mm f/2.8</model>

I didn’t compare the lens list against the currently available models, but it’s apparent someone’s working the Z mount lenses…

Beware that @ggbutcher is showing v2 profiles and the snap is showing v1.

You can grab the tar file from bringer’s website and untar it in the version_1 folder. I don’t think the snap is capable of running the update script.

Okay, version_1:

glenn@bena:~/ImageStuff/lensfun_dbupdate/build-linux/version_1$ grep model mil-nikon.xml |grep Nikon
        <model>Nikon 1 S1</model>
        <model>Nikon 1 V1</model>
        <model>Nikon 1 J1</model>
        <model>Nikon 1 AW1</model>
        <model>Nikon 1 S2</model>
        <model>Nikon 1 V2</model>
        <model>Nikon 1 J2</model>
        <model>Nikon 1 V3</model>
        <model>Nikon 1 J3</model>
        <model>Nikon 1 J4</model>
        <model>Nikon 1 J5</model>
        <model>Nikon Z 5</model>
        <model>Nikon Z 6</model>
        <model>Nikon Z 6_2</model>
        <model>Nikon Z 7</model>
        <model>Nikon Z 7_2</model>
        <model>Nikon Z 9</model>
        <model>Nikon Z 30</model>
        <model>Nikon Z 50</model>
        <model>Nikon Z fc</model>
glenn@bena:~/ImageStuff/lensfun_dbupdate/build-linux/version_1$ grep model mil-nikon.xml |grep NIKKOR
        <model>NIKKOR Z 14-24mm f/2.8 S</model>
        <model>NIKKOR Z 14-30mm f/4 S</model>
        <model>NIKKOR Z 24-70mm f/2.8 S</model>
        <model>NIKKOR Z 24-70mm f/4 S</model>
        <model>NIKKOR Z 20mm f/1.8 S</model>
        <model>NIKKOR Z 50mm f/1.8 S</model>
        <model>NIKKOR Z 70-200mm f/2.8 VR S</model>
        <model>NIKKOR Z 85mm f/1.8 S</model>
        <model>NIKKOR Z 24-200mm f/4-6.3 VR</model>
        <model>NIKKOR Z DX 16-50mm f/3.5-6.3 VR</model>
        <model>NIKKOR Z 35mm f/1.8 S</model>
        <model>NIKKOR Z 40mm f/2</model>
        <model>NIKKOR Z MC 105mm f/2.8 VR S</model>
        <model>NIKKOR Z 28-75mm f/2.8</model>

The issue is not the lensfun database, the issue is how the snap is being updated.

Sorry, I was responding to your initial lament…

How so?

The only evidence is from my own installation and it would be good to confirm if others also found the same issue. I have raised a bug with the snap owner so hopefully that will shed some more light.

My understanding is a snap (similar to flatpak) are a self contained linux package that should come with all dependencies etc. Evidently in my case the darktable package came missing some lensfun camera data. I’m not sure why.

Actually it seems like the lensfun update command is shipped in the snap: https://github.com/sergiusens/darktable-snap/blob/master/snap/snapcraft.yaml#L47

Have you try and run lensfun-update-data?

No I haven’t tried to manually update the data. But as part of building the snap it should do that automatically.

It would seem in my case that didn’t happen. Could be a local issue but I need someone else to confirm that.

I don’t see the same behaviour with flatpak.

Did you build the snap or install it? That command is for build time and is also dependant on if the host system has updated the lensfun profiles, which I’d guess they had not.

Would a fresh install trigger a build?

The camera recognition worked fine in 3.8.1 but not in 4.0.1.