ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: banana123 on July 16, 2023, 09:10:46 AM

Title: copy all metadata fields from source to target
Post by: banana123 on July 16, 2023, 09:10:46 AM
Hi!
I'm trying to copy all metadata fields from source image to target image, overwriting the existing data, without harming the pixels of course..
Im using
et.execute("-TagsFromFile", source_photo, "-all:all",target_photo)but it wont copy all EXIF fields (like InteropIndex,InteropVersion) and all the ICC and XMP fields.
How do i do that?

thanks!
Title: Re: copy all metadata fields from source to target
Post by: Phil Harvey on July 16, 2023, 09:49:07 PM
Your command should copy standard XMP tags, but to also copy non-standard XMP, add -xmp to the command.  And add -icc_profile to copy the profile, but if the target used this profile it should already contain this information.

The Interop tags are marked as unsafe to copy and must be specified explicitly.  See the EXIF tags documentation (https://exiftool.org/TagNames/EXIF.html) for details (tags with an exclamation point in the Writable column are "unsafe", and not copied when a wildcard or "all" is used).

- Phil