ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dwlott on January 09, 2025, 09:24:15 PM

Title: Write to XMP tags then xmp2iptc
Post by: dwlott on January 09, 2025, 09:24:15 PM
Hello Phil and Stargeek,

I want to write to XMP tags then have the nifty xmp2iptc.args do the rest of the work. 
I can run the first arg file to fill in XMP tags, then xmp2iptc.args, and IPTC is synced with the new XMP, and IPTCDigest is updated.

I'm wondering if it can be done in one write. 
The following fails I think because the XMP tags from DLFullCopyright.args have yet to be written before xmp2iptc.args can copy them.

-@
E:\exiftool\exiftool_files\arg_files\DLFullCopyright.args
-@
E:\exiftool\exiftool_files\arg_files\xmp2iptc.args
E:\mySourceFolder\Small Set\File1.jpg
-o
E:\myTargetFolder\%f.%e






Title: Re: Write to XMP tags then xmp2iptc
Post by: Phil Harvey on January 09, 2025, 09:27:25 PM
You could only do this in a single command by modifying your DLFullCopyright.args file to also write the IPTC tags.  Using xmp2iptc.args would require running ExifTool twice.

Adding the IPTC tags to your argfile shouldn't be too difficult.

- Phil
Title: Re: Write to XMP tags then xmp2iptc
Post by: dwlott on January 09, 2025, 11:57:53 PM
Thank you Phil. 
My goal is the easiest way, you've reassured me that I'm not adding extra steps.  Running two exiftool commands isn't hard.
xmp2iptc.args is great. I trust the arg file more than my fiddling. -IPTCDigest=new is a nice touch.