Put xmp keywords in iptc data for a big directory

Started by Archive, May 12, 2010, 08:54:11 AM

Previous topic - Next topic

Archive

[Originally posted by pilpil on 2007-11-10 16:52:28-08]

I success to put xmp keywords in iptc data for a single file, but I cant find how to do it for many files contained in a single directory.

My command is :

Code:
exiftool -tagsFromFile a.jpg -@ myxmp2iptc.args -P -overwrite_original a.jpg

and my myxmp2iptc.args file is :

Code:
-XMP-dc:Subject > IPTC:Keywords

Can I use the -r command ? but how ?

maybe I can use a batch file, but I'm afraid it will take too much time for all my pictures !

And how can I be sure I don't lost any iptc or xmp information in my files ?

I use the exe file on windows.

Archive

[Originally posted by exiftool on 2007-11-10 21:05:53-08]

You shouldn't lose any information with a command like this, but
you should always keep backups just in case, and I suggest testing
the command on a directory containing only a few images at first
to be sure it is doing what you want.

The command you want is:

Code:
exiftool -@ myxmp2iptc.args -P -r -overwrite_original DIR

The "-tagsfromfile @" is understood unless you specify another file
when you use a "-TAG1>TAG2" argument (as in your .args file).

- Phil

Archive

[Originally posted by pilpil on 2007-11-11 10:34:27-08]

Thanks Phil for your answer !

I have try with a few files, it works, but I have the following warning for all files modified :
Code:
Warning: [minor] Possibly incorrect maker notes offsets (fix by -284?) - myfile.jpg

Do you know what does it mean ? I don't find any information about -284

Do I have something to change, with -F command ? or is it important less ?

It seems that this command analyze all files, is it possible to say to analyze only jpeg files ?

Archive

[Originally posted by exiftool on 2007-11-11 12:44:54-08]

The "incorrect maker notes offsets" warning is because you edited
the image with some other software that didn't properly rewrite
the makernote information.  ExifTool is guessing that the makernote
offsets need to be shifted down by 284 bytes.  Take a look at the
makernote information with and without the -F option to see if
exiftool guessed correctly.  If it did, you can use the -F option
when rewriting these files to preserve things the way they are,
or use "exiftool -F -tagsfromfile @ -all:all FILE" to fix the file
permanently.

Use "-ext jpg" to process only JPEG files.

- Phil