Main Menu

Copying XMP metadata

Started by pdodo, September 16, 2019, 10:00:53 AM

Previous topic - Next topic

pdodo

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

StarGeek

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, 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 and search the forum for examples.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

olball

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, 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.)

StarGeek

Thanks olball, I was heading out the door at the time and couldn't take the time to look that option up.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

pdodo

#4
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.