Hello! I am reading a TIF image file into matlab for some calculation and saving it back to TIF, I am then using ExifTool to copy back ALL the metadata of the original file to the new one. Unfortunately, XMP metadata are not being copied even if I specified them separately. I also tried using '-unsafe' although I understand this would only apply to tags that are part of the EXIF group. Please see below what I get on the command line when trying to add the tag '-Bandwidth'. Thank you in advance for your support!
C:\>exiftool -tagsfromfile "C:\Users\.....\original\filename.tif" -ext TIF -Bandwidth "C:\Users\....\corrected\filename.tif"
Warning: Tag 'bandwidth' is not defined - C:\Users\.....\original\filename.tif
Warning: No writable tags set from C:\Users\.....\original\filename.tif
0 image files updated
1 image files unchanged
Exiftool can't copy data that it doesn't have a definition for. If the XMP tag doesn't appear on the XMP tags page (https://exiftool.org/TagNames/XMP.html), then it can't copy it.
If you want to create a definition for your Bandwidth tag, take a look at the details in the example.config file (https://exiftool.org/config.html) and search the forum for examples.
Quote from: StarGeek on September 16, 2019, 10:55:36 AM
Exiftool can't copy data that it doesn't have a definition for. If the XMP tag doesn't appear on the XMP tags page (https://exiftool.org/TagNames/XMP.html), then it can't copy it.
Alternative you could try the copy the xmp as whole block.
exiftool -tagsfromfile ...\original\filename.tif -xmp ...\corrected\filename.tif
This should also work if there unknown tags in the xmp block. (But it will copy all xmp tags.)
Thanks olball, I was heading out the door at the time and couldn't take the time to look that option up.
Thank you both for your replies. Explicitly referring to group tags (e.g., -xmp) worked but left out some tags. What worked was having "-all:all>all:all" as well as group tags (e.g., -exif -xmp -composite) included, this resulted in all metadata being copied to the new file.