How to fix purple DNG files

Started by vitya, December 05, 2024, 06:00:02 AM

Previous topic - Next topic

vitya

Fist of all, thanks for this awesome utility - been using it for yours, never a single problem.
The issue I am describing below is not exiftool related, but I'm writing it here because it might give me a solution/workaround:

I have a Oneplus 9 Pro phone with no Google stuff on it. I use a GCam port from https://www.celsoazevedo.com/files/android/google-camera/
The app and the phone takes great pics and can saves each pic in both DNG and JPG formats. The JPG format files are OK, nothing to report there. However, the DNG files, when opened in Adobe's Camera Raw*Bridge, some appear just fine (I can edit them as usual), some of them appear with a strong purple-ish hue. To be fair with Adobe, the clearly state that my phone's RAW format is not supported. I wonder though, why is it, that some of the DNG files are OK, some of them are not.

After some investigation, I can see that the ones that appear correctly have the dimensions 4080*3056, the ones that are purple have the dimensions 3984*2992. All other differences don't seem to be consistent between normal and purple images. It also appears that the ones that appear correctly were taken by the "wide angle" lens, the ones that appear purple were taken by the "normal" lens.

So I tried the mighty exiftool to change the purple image's sizes, but it wouldn't let me.
I was wondering if someone has encountered, or even found a solution for this issue.

Any pointers would be much appreciated.

ps: I can send a sample picture to anyone interested in this issue.

FrankB

Maybe if you convert to DNG files with Adobe DNG Converter? (You can convert DNG to DNG, using different params)

https://helpx.adobe.com/camera-raw/using/adobe-dng-converter.html

vitya

Good idea, just tried it, but the newly saved images are as purple as they were. :(
Thanks though!

FrankB

Too bad. I'm willing to look into an example, but make no promises.

StarGeek

Quote from: vitya on December 05, 2024, 06:00:02 AMSo I tried the mighty exiftool to change the purple image's sizes, but it wouldn't let me.

You can't arbitrarily change the image size with exiftool as that is not editable metadata, it's actual image data. Exiftool doesn't edit image data.

Changing the size wouldn't affect anything anyway. It's not the size that would be the problem, it's the image data itself. It either has the purple tint embedded in it or the data is being interpreted incorrectly.

You might try some other programs to see if there is any differences. For example, FastRawViewer for Mac/Windows. Or ImageMagick on the command line.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype