I noticed that the Lens Correction module in Darktable 4.2 works great with “embedded metadata” when processing original raw files but if I convert the file to DNG (using either Lightroom or Adobe DNG converter) the module is no longer offering the “embedded metadata” option. I am pretty sure that the lens correction data is still available in the DNG file.
The reason I like to convert the Sony A7RII files to DNG is to save disk space using lossless compression (shrink the files by about 50%, from around 80MB per file to around 40MB).
Any idea if this is something that could be added to a future version of Darktable? Should I open an issue for that in GitHub?
Even though it saves space, I’d recommend not using DNG. I’d recommend saving the original files from your cameras. If you absolutely need DNGs to gain some compatiblity somewhere, then use them, but IMHO preserving the original files from your camera is paramount. Adobe can tell you what they’re doing with the DNG, but they maybe incorrect, there maybe bugs, etc etc.
It would be sad to get years down the road, having discarded the original files, only to discover that the DNG isn’t suitable for some purpose.
Reducing your file size from 80 MB to 40 MB is significant; something must get lost on the way. Not a SONY shooter, but does the camera have the option for DNG?
No the Sony A7RII doesn’t have a DNG option and its compressed raw is lossy. In the other hand, Adobe Raw converter provides lossless compression, so from the image standpoint, no data should be lost. But it’s another story for the meta-data as it is proprietary and something might be lost in translation.
Ignoring for the moment the fact that exiftool reports a difference in values, the real issue is that Exif MakerNotes (of Sony veriety), that dt knows about and looks for, get moved to a different location called DNGPrivateData not currently being parsed.
In theory this relocation by the DNG Converter should be verbatim, so this might be worth looking into further (using exiv2 though, as that is what dt uses for parsing).
Bad news (for now): in the ARW, the lens correction params are duplicated in the SR2 MakerNote sub-directory (in addition to being available in the regular image sub-directory which exiv2/dt read). Here’s from a A7S sample dumped by exiftool -v3: