Write to XMP tags then xmp2iptc

Started by dwlott, January 09, 2025, 09:24:15 PM

Previous topic - Next topic

dwlott

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







Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dwlott

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.