I took some photos in RAW with my DJI MINI 2, opened them in RawTherapee and the images show a strange off-colouring around the edges, it looks like it’s leaning towards blue.
This is not the case with Photoshop.
I’ve also opened RAW files from multiple other cameras in RawTherapee and have had no off-colouring, only the DJI MINI 2 does.
I wonder why that is? I have not encountered this before, how can I fix it?
DJI_0067.DNG (23.4 MB)
That is colour shading. From my OnePlus Nord 3 5G it is corrected in darktable, but OpcodeList3 that DJI uses is not supported.
The OpcodeList3 in this DNG contains a GainMap opcode which applies both vignetting and color shading correction. It also contains a WarpRectilinear opcode which in theory could correct distortion and CA, but in this file the tag values do nothing and it could have been left out.
The file is valid, but it won’t work with the GainMap implementation that I added to darktable 4.0 because that implementation only works with GainMap in OpcodeList2 (before demosaic) and this one is in OpcodeList3 (af…
Many phone cameras show this too. Ithink RawTherapee has an option somewhere to enable the embedded gainmap, if there is one and it can be read…
Never tried it myself, but I believe this script will help
GitHub - paolodepetrillo/raw2dng at dngpreprocess
Edit: Tried it now. Works.
I downloaded the source code and installed with:
Then I went to the folder to find dngpreprocess and run:
./dngpreprocess -3 rawfile.dng
It will demosaic the image and apply lens correction. I think AHD is the demosaicing method. The file size will increase a lot. If you put dngpreprocess in .local/bin in Linux you will be able to run the command from all folders.
DJI_0052.DNG (23.2 MB)
DJI_0052_pp.dng (47.7 MB)
And your own file here
DJI_0067_pp.dng (46.7 MB)