Exiv2 / exiv2

Image metadata library and tools

Home Page:http://www.exiv2.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sony Marker Notes in converted from ARW to DNG files no longer readable by exiv2 (but still readable by exiftool)

dtrtuser opened this issue · comments

Once Sony raw files are converted to dng using Adobe converter, exiv2 can't read marker notes from these dng file. I experienced the issue with all Sony A7 cameras I could test: A7III, A7IV, A7RII and A7RV.

Because of this issue, the lens correction with embedded meta-data doesn't work in darktable.

exiv2 --version
exiv2 0.27.6

exiv2 20221220-7R200672.dng | grep Vignett
Error: Directory Sony2 with 25665 entries considered invalid; not read.

exiv2 20221220-7R200672.dng | grep Chromatic
Error: Directory Sony2 with 25665 entries considered invalid; not read.

exiv2 20221220-7R200672.dng | grep Distortion
Error: Directory Sony2 with 25665 entries considered invalid; not read.

Exiftool in the other hand has no problem reading it:

exiftool 20221220-7R200672.dng | grep Vignetting
Vignetting Correction           : Off
Vignetting Corr Params          : 0 32 192 448 768 1184 1696 2304 3072 4000 5056 6240 7424 8576 9632 10688

exiftool 20221220-7R200672.dng | grep Chromatic
Lateral Chromatic Aberration    : Off
Chromatic Aberration Corr Params: 781 731 689 656 632 621 610 586 554 511 466 429 389 339 273 223 -90 -56 -26 4 32 62 84 80 82 120 168 210 260 324 406 502

exiftool 20221220-7R200672.dng | grep "Distortion Corr"
Distortion Correction Setting   : Off
Distortion Correction           : None
Distortion Corr Params          : 12 0 -36 -80 -144 -216 -312 -408 -524 -640 -772 -900 -1036 -1168 -1308 -1440
Distortion Corr Params Number   : 16 (Full-frame)
Distortion Corr Params Present  : Yes

It would probably be helpful if you posted a sample DNG.

  • Phil