ExifTool Forum

General => Metadata => Topic started by: Alu on July 21, 2014, 08:03:28 AM

Title: Iptc to Xmp
Post by: Alu on July 21, 2014, 08:03:28 AM
Hi!

I need some help to finish my code...
I want to copy iptc from a jpg file to a xmp file (used after for my raw and to be recognize by lightroom).
I write this :
C:\Exiftool-perl\exiftool.pl -tagsfromfile D:imagestest\130511_012.jpg -@ iptc2xmp.args D:imagestest\130511_012.xmp
and it is ok for one file, but I want to do this operation in a directory and I don't find how to do this.
I try :
C:\Exiftool-perl\exiftool.pl -tagsfromfile %d%f.jpg -@ iptc2xmp.args *.xmp D:\imagetest
but it create a new jpg file and not a new xmp file.

Someone see why it's not worked? what I have to modify?
thanks for the help.
Title: Re: Iptc to Xmp
Post by: Phil Harvey on July 21, 2014, 08:11:10 AM
There are lots of ways to do this.  This page (https://exiftool.org/metafiles.html) describes a number of them.

Do the XMP files already exist, or do you want to create them?  If you want to create them, the easiest way is like this (like exmaple 11):

exiftool -ext jpg -o %d%f.xmp -@ iptc2xmp.args D:\imagetest

If they already exist, then this is the way (like example 12):

exiftool -ext xmp -tagsfromfile %d%f.jpg -@ iptc2xmp.args D:\imagetest

Or if they may or may not already exist, it gets a bit more complicated (like example 13):

exiftool -ext jpg -tagsfromfile @ -@ iptc2xmp.args -srcfile %d%f.xmp D:\imagetest

- Phil
Title: Re: Iptc to Xmp
Post by: Alu on July 21, 2014, 08:22:45 AM
So so great! thank you very much! :))
I tried some combinaisons but no one worked...

By the way, thank you for your application, it's saved my life so many time ;)