https://bugs.kde.org/show_bug.cgi?id=525736

--- Comment #2 from [email protected] ---
There are 5 tags of interest in the SR2 data that needs to be backported:
1. BlackLevel (SR2SubIFD tag 0x7300/0x7310). Usually 512 (I think), but it may
be different in certain models.
2. WhiteLevel (SR2SubIFD tag 0x787F). On the A5100 it is 15360 instead of the
14-bit 16383 (which is what is written when converting directly). Again, it
could be different per model.
3. ColorMatrix (SR2SubIFD tag 0x7800). I do not know what it is for. It is
certainly different per model.
4. WB_GRBG/RGGBLevelsAuto (SR2SubIFD tag 0x7302/0x7312).
5. WB_GRBG/RGGBLevels (SR2SubIFD tag 0x7303/0x7313). These 2 WB ratios does not
match the "regular" Sony WB_RGBLevels found elsewhere. I guess it seems to be a
"lower-level" WB than the "regular" one.
The whole list is here. Of course, the more the better:
https://exiftool.sourceforge.net/TagNames/Sony.html#SR2SubIFD

Regarding the 2 situations converting Sony raws:
1. Convert the ARW file to DNG file. In this case, Save SR2 and other Sony data
correctly like the Adobe thread mentioned, to ensure that `exiftool` can read
the tags.
2. Recreate a Sony DNG file from one Adobe messed up. In this situation,
recover whatever is available (it seems that DigiKam and other raw converters
can still intepret such files correctly) from the broken SR2 data, save the
extracted tags and the broken 0x7250 tag to XMP, then remove the SR2 data
(exiftool will refuse to edit a DNG file with broken SR2). If recovering is not
possible, fill the black level and white level from a lookup table for each
camera model, to at least get a usable file.

Regarding the "failsafe" MakerNote backups (not just Sony), I mean copying each
MakerNote TagID and its corresponding type/size/base64-encoded data directly
into a private XMP namespace without intepreting the data. It is more about
making sure that the MakerNote is reliably stored somewhere without depending
on a byte offset.

I hope you can understand what I am trying to say. English is not my primary
language.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to