ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: tajino on January 04, 2020, 10:52:19 AM

Title: Import extracted opcodelist3 binary data back into DNG
Post by: tajino on January 04, 2020, 10:52:19 AM
Hi, I'm trying to import the extracted opcodelist3 binary data file back into a DNG file, I've tried many ways but just couldn't figure it out.

The opcodelist3 binary data is extracted with :
exiftool -IFD0:opcodelist3 test.DNG -b -w test.bin

I then clear the opcodelist3 tag in the DNG file with :
exiftool -IFD0:opcodelist3= -overwrite_original test.DNG

All is good, confirmed that the opcodelist3 tag is no longer in the DNG
Now, how do it import the test.bin binary data back into the DNG as IFD0:opcodelist3 tag? I tried :

exiftool "-IFD0:opcodelist3<=test.bin" -overwrite_original test.DNG

got this error :
Can't convert value for IFD0:OpcodeList3 (no PrintConvInv)
Warning: Can't convert value for IFD0:OpcodeList3 (no PrintConvInv)
Nothing to do.


Any help would be appreciated, thanks!

Edit:

Reverted to the older exiftool 11.15, the same  command works
exiftool "-IFD0:opcodelist3<=test.bin" -overwrite_original test.DNG
But 11.81 gave the error, I wonder what am I missing here.
Title: Re: Import extracted opcodelist3 binary data back into DNG
Post by: Phil Harvey on January 04, 2020, 01:24:04 PM
Add the -n option to the command when writing.
Title: Re: Import extracted opcodelist3 binary data back into DNG
Post by: tajino on January 07, 2020, 12:17:20 AM
Thanks, adding -n works.