Failed to create Lensfun profile for OnePlus 6

I followed this tutorial and I have succeeded before with my Canon raw files. With OnePlus 6 I just get


I suppose this has to do with the integrated lens and that’s why I can’t grab any LensModel. So,
what should be my next move? I know the lens is f/1.7 and has a focal length of 4.2 mm. Should I just add the tags with Exiv2?

CC0 for the raw file
OnePlus-6.dng (31.1 MB)

DNGs by design (based on TIFF/EP) don’t contain a separate Exif IFD (Exif.Photo in exiv2 parlance) like most DSLR raw formats but keep everything in the main IFD of the image itself (Exif.Image) [1]. You can check those are indeed present in Exif.Image, and then try to recreate Exif.Photo tags?

Ideally lensfun should fall back to Exif.Image if Exif.Photo is not found…

[1] https://en.wikipedia.org/wiki/TIFF/EP#Differences_from_TIFF_and_Exif

2 Likes

For fixed lens cameras you don’t need lens information from EXIF, see here for examples of how unique mount names are used to map a camera profile to a lens profile. Of course, things can get more complicated for devices with more than one fixed lens, but that’s another story

2 Likes