Hi, if you try to import Mavic 3 DNGs into Darktable for postproduction you get an error message (camera not supported) and just see a skull instead of your image. M2Z and Mini 2 DNGs work without problems like before.
I checked this with the Darktable team and it seems DJI writes an incorrect tag value into the metadata of the pictures.
The tag StripByteCounts has an incorrect value, it should be calculated like this: ImageWidth*ImageHeight*2, but isn't.
Darktable uses RawSpeed to import Raw files and RawSpeed finds this inconsistency, so any other software using RawSpeed will have the same problem. Software using other libraries to import have no problems, like Luminance.
I already opened a ticket at DJI and hope they will fix it very fast.
You can't correct this tag by a batch job using exiv2 etc. because it is write protected.
The only way I found to fix it is manually for each picture. Use a metadata editor like exiv2 to get the wrong value of this tag (always seems to be 41775360) and use a hex editor to search for this value in each DNG and change it to the correct value 5376*3956*2=42534912.
Save and you can import the file into Darktable without problems.
I checked this with the Darktable team and it seems DJI writes an incorrect tag value into the metadata of the pictures.
The tag StripByteCounts has an incorrect value, it should be calculated like this: ImageWidth*ImageHeight*2, but isn't.
Darktable uses RawSpeed to import Raw files and RawSpeed finds this inconsistency, so any other software using RawSpeed will have the same problem. Software using other libraries to import have no problems, like Luminance.
I already opened a ticket at DJI and hope they will fix it very fast.
You can't correct this tag by a batch job using exiv2 etc. because it is write protected.
The only way I found to fix it is manually for each picture. Use a metadata editor like exiv2 to get the wrong value of this tag (always seems to be 41775360) and use a hex editor to search for this value in each DNG and change it to the correct value 5376*3956*2=42534912.
Save and you can import the file into Darktable without problems.