Main Menu

Iptc to Xmp

Started by Alu, July 21, 2014, 08:03:28 AM

Previous topic - Next topic

Alu

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.

Phil Harvey

There are lots of ways to do this.  This page 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
...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 ($).

Alu

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 ;)