I have thousands of TIFF and JPG files with IPTC data, in hundreds of subdirectories.
I would like to remove the IPTC data and just use XMP sidecar.
Is it possible to transfer all the data quickly?
I've tried Tools -> Metadata -> Transfer, but I can't do it.
Command-line exiftool can do it? If yes, how?
Thank you.
XnView MP 0.99.4
Win 10x64
Move/Copy/Extract IPTC/XMP to sidecar companion
Moderators: helmut, XnTriq, xnview
-
- Posts: 227
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Move/Copy/Extract IPTC/XMP to sidecar companion
Exiftool can do the job ...
I'm not sure I can explain all the possible cases...
Which kind of metadata do you want to move ?
iptc only to xmp sidecar ?
xmp only to xmp sidecar ? ( this one is easy : exiftool param are : -o %d%f.xmp -xmp -k )
both ?
create or update sidecar ?
- Some of these ? or all of them ?
-XMP-dc:Creator < IPTC:By-line
-XMP-photoshop:Headline < IPTC:Headline
-XMP-dc:Description < IPTC:Caption-Abstract
-XMP-dc:Title < IPTC:ObjectName
-XMP-dc:Rights < IPTC:CopyrightNotice
-XMP-photoshop:Credit < IPTC:Credit
-XMP-dc:Subject < IPTC:Keywords
-XMP-photoshop:City < IPTC:City
-XMP-photoshop:Country < IPTC:Country-PrimaryLocationName
-XMP-photoshop:State < IPTC:Province-State
-XMP-iptcCore:Location < IPTC:Sub-location
These 11 metadata are coming from an arguments file downloaded in Image-Exiftool-5.67.tar.gz
The name of this file is iptc2xmp.args , and it can be used by exiftool.exe with this parameter -@ iptc2xmp.args
Example command line :
exiftool -tagsFromFile photo.jpg -@ iptc2xmp.args -iptc:all= photo.jpg
But this command processes only one file ...
... gets all tags from photo.jpg, process args file, deletes iptc:all , write result in embedded xmp in photo.jpg
I can study how to choose exiftool's parameters to provide a "Tools > Open With..." function in XnViewMP in order to process all selected files in the browser.
I'm not sure I can explain all the possible cases...
Which kind of metadata do you want to move ?
iptc only to xmp sidecar ?
xmp only to xmp sidecar ? ( this one is easy : exiftool param are : -o %d%f.xmp -xmp -k )
both ?
create or update sidecar ?
- Some of these ? or all of them ?
-XMP-dc:Creator < IPTC:By-line
-XMP-photoshop:Headline < IPTC:Headline
-XMP-dc:Description < IPTC:Caption-Abstract
-XMP-dc:Title < IPTC:ObjectName
-XMP-dc:Rights < IPTC:CopyrightNotice
-XMP-photoshop:Credit < IPTC:Credit
-XMP-dc:Subject < IPTC:Keywords
-XMP-photoshop:City < IPTC:City
-XMP-photoshop:Country < IPTC:Country-PrimaryLocationName
-XMP-photoshop:State < IPTC:Province-State
-XMP-iptcCore:Location < IPTC:Sub-location
These 11 metadata are coming from an arguments file downloaded in Image-Exiftool-5.67.tar.gz
The name of this file is iptc2xmp.args , and it can be used by exiftool.exe with this parameter -@ iptc2xmp.args
Example command line :
exiftool -tagsFromFile photo.jpg -@ iptc2xmp.args -iptc:all= photo.jpg
But this command processes only one file ...
... gets all tags from photo.jpg, process args file, deletes iptc:all , write result in embedded xmp in photo.jpg
I can study how to choose exiftool's parameters to provide a "Tools > Open With..." function in XnViewMP in order to process all selected files in the browser.
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
-
- Posts: 227
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Move/Copy/Extract IPTC/XMP to sidecar companion
I need to transfer IPTC embedded data to (companion) sidecar "filename.ext.xmp" and delete "clean" all IPTC/XMP internal data.michel038 wrote: Sun Dec 05, 2021 9:18 pm Which kind of metadata do you want to move ?
iptc only to xmp sidecar ?
create or update sidecar ?
[...]
But this command processes only one file ...
I would like that these data are contained in sidecar file.
I have many, many TIFF files in many, many directories and sub-sub-subdir.
I need also modify this data, so probably I open every file, copy/paste/modify and put this data in xmp sidecar using Tools - Metadata - Edit XMP...
I'll do this massive work next year.

Thank you for your help.