Hi, I have a similar problem as reported in https://exiftool.org/forum/index.php?topic=15410.0 (https://exiftool.org/forum/index.php?topic=15410.0) but the suggestions there didn't work for me. To summarize:
I load a pile of exposure-bracketed raw (.arw) files from the Sony ZV-1 into SNS-HDR to produce an HDR image. But since SNS-HDR doesn't preserve the distortion and chromatic aberration tags (and, frankly, a lot of other tags), the result has a ton of (uncorrected) barrel distortion, unlike when loading those ARWs directly into something like Photoshop or even Windows Picture Viewer.
So, I tried using Exiftool to copy all of the tags from one of those ARWs to the output HDR TIF file, but cannot seem to find the right command to do that.
My typical workflow consists of the following wiping then copying from one of the input files:
exiftool -all:all= out-hdr.tif
exiftool -TagsFromFile in.arw -all:all out-hdr.tif
but that didn't work. So I also tried adding these:
exiftool -TagsFromFile in.arw "-ifd0:all<opcodelist2" "-ifd0:all<opcodelist3" -n out-hdr.tif
but got:
Warning: No writable tags set from in.arw
0 image files updated
1 image files unchanged
Then tried:
exiftool -TagsFromFile in.arw -ChromaticAberrationCorrParams -DistortionCorrParams out-hdr.tif
but got:
Warning: Not enough values specified (17 required) for SubIFD:DistortionCorrParams - in.arw
1 image files updated
Perhaps I should convert the ARW to DNG using Adobe DNG Converter, and use that as source file for these tags?
Anyway, I'm not seeing the actual correction parameters in the output file.
The output of exiftool -a -u -G1 for both files is attached.
Thanks in advance for any help you can offer. Ultimate goal is to have something like Photoshop be able to recognize the aberration/distortion tags in the HDR output and correct the image accordingly just like it does for the source (ARW) files.
The tags you are trying to copy exist in the Sony maker notes, and can't be created individually. Your best bet may be to try copying the makernotes as a block, but I woudn't be surprised if Photoshop ignores these corrections unless it is an ARW image. See FAQ 8 (https://exiftool.org/faq.html#Q8) for help copying the maker notes.
- Phil
Thanks Phil. I tried:
exiftool -TagsFromFile in.arw -makernotes -make -model out-hdr.tif
but I'm not seeing those tags in the output file.
Just curious, is this "SubIFD" the Maker Notes you refer to? Here's from in.arw:
[SubIFD] Vignetting Correction : Auto
[SubIFD] Vignetting Corr Params : 16 0 0 0 23 59 127 275 530 888 1350 1902 2541 3256 4036 4871 5748
[SubIFD] Chromatic Aberration Correction : Auto
[SubIFD] Chromatic Aberration Corr Params: 22 0 128 384 384 384 512 512 640 768 768 768 0 384 512 512 512 512 384 128 128 256 640 0 0 0 0 0 0 0 0 0 0
[SubIFD] Distortion Correction : Auto fixed by lens
[SubIFD] Distortion Corr Params : 11 658 643 580 469 313 119 -104 -340 -567 -777 -972 0 0 0 0 0
I see. These tags exist in the EXIF SubIFD as well as in the maker notes:
> exiftool ../pics/SonyZV-1.arw -DistortionCorrParams -G0:1 -a
[EXIF:SubIFD] Distortion Corr Params : 11 -137 -129 -125 -125 -134 -151 -175 -185 -165 -103 0 0 0 0 0 0
[MakerNotes:Sony] Distortion Corr Params : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[MakerNotes:Sony] Distortion Corr Params : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[MakerNotes:SR2SubIFD] Distortion Corr Params : 11 -137 -129 -125 -125 -134 -151 -175 -185 -165 -103 0 0 0 0 0 0
ExifTool is able to write these tags, but won't create them if they don't already exist. Presumably you would need to write these to IFD0 for a TIFF image, but it is unlikely that Photoshop would read them from there. If you want to try, you could create user-defined tags to do this, but it would be a fair bit of work with a slim chance of success.
- Phil