Thread

Posted on Wed May 7 23:37:50 2008 by pixelpicker
melting of keywords of 2 images in new image...
Hello. First: MANY MANY thanks for Exiftool. Even with my little brain I could modify lots of images-metadata that wasn't possible with other programs. Specially the features to change the Exif-entries is so helpful! Now to the task: I have two images in two folders [named: deutsch, english], one with German, the other with English keywords. I want to create, copy a new image in a new folder [named: beide] and copy first the german and second the english kewords into the new image. result: one image with all keywords and the English, German keywordlists should be separated by a Pipe. My 5 step sollution is this up to now:

perl exiftool.pl -overwrite_original "-xmp:Keywords<Keywords" F:\Keyowrds_melting\english

perl exiftool.pl -tagsfromfile F:\Keyowrds_melting\english\%f.jpg -xmp:Keywords -o F:\Keyowrds_melt +ing\beide F:\Keyowrds_melting\deutsch\

perl exiftool.pl -overwrite_original -Keywords+=" | ." F:\Keyowrds_melting\beide

perl exiftool.pl -overwrite_original "-xmp:Keywords+>keywords" F:\Keyowrds_melting\beide

perl exiftool.pl -overwrite_original -xmp:Keywords= F:\Keyowrds_melting\beide

The Problem: if I look at the keywords in Adobe [Photoshop and Bridge] the additional second block of english keywords are not separated correctly, the are comma separated instead of semicolon like the German ones. It looks like this:

abnorm;

Abnormalitaet;

Abnormalitaeten;

aengstlich;

allein;

|;

abnorm, abnormal, abnormalities, abnormality, abnormally, abnormities, abnormity

Could be, that results because the xmp:Keywords tag is no list-tag or has another list-format. I tried it also with the XMP-dc:subject tag but it resulted in not visible english keywords in Adobe although all the keywords showed in Exiftool with
perl exiftool.pl -a -G1 -s

Does anyone have an idea, how I can create a correct keywordlist in the new image?
Many thanks!
Have sunny days.
greetings from
pixelpicker
Direct Responses: 7832 | Write a response
Posted on Thu May 8 01:32:28 2008 by exiftool in response to 7831
Re: melting of keywords of 2 images in new image...
You really shouldn't be using XMP-PDF:keyords because this tag stores a single string and not a list of items. Also, the pipe symbol doesn't make sense as a keyword entry. If xmp:subject was a lang-alt list then you would be all set, but unfortunately with the current xmp spec you need to put all keywords in one list. But you should be able to do this using a single exiftool command with multiple tagsfromfile options. - Phil
Direct Responses: 7833 | Write a response
Posted on Thu May 8 02:44:31 2008 by pixelpicker in response to 7832
Re: melting of keywords of 2 images in new image...
Dear Phil, many thanks for your reply and your hint. I tried this:

perl exiftool.pl -tagsfromfile F:\Keyowrds_melting\english\%f.jpg -Keywords -tagsfromfile F:\Keyowr +ds_melting\deutsch\%f.jpg -Keywords -o F:\Keyowrds_melting\beide F:\Keyowrds_melting\deutsch\

but it didn't work. The resulting keywordlist showed just the english keywords. Did you mean it like that or am I too dump?
Greetings from
pixelpicker
Direct Responses: 7835 | Write a response
Posted on Thu May 8 12:31:41 2008 by exiftool in response to 7833
Re: melting of keywords of 2 images in new image...
I dont know where the keywords exist in the original files, but this would work if they are in iptc:keywords and you use "-keywords+<keywords". But if you wnt them in the same location as the original, why dont you just use tagsfromfile once to add the english keywords to the german file? I guess i dont understand the details of where you want the keywords and where they are coming from. - Phil
Direct Responses: 7837 | Write a response
Posted on Thu May 8 20:07:51 2008 by pixelpicker in response to 7835
Re: melting of keywords of 2 images in new image...
Phil - Genius! It works and is a very short and easy code. For all the people who want do insert additional keywords from another image in a copied image, here the code:

perl exiftool.pl -tagsfromfile F:\Keyowrds_melting\english\%f.jpg "-iptc:keywords+<iptc:keywords" - +o F:\Keyowrds_melting\beide F:\Keyowrds_melting\deutsch

deutsch is a folder with images with german keywords
these images are copied to a folder beide with the
-o
then the additional english keywords from images in a folder english are inserted in the images in folder beide with
-tagsfromfile F:\Keyowrds_melting\english\%f.jpg "-iptc:keywords+<iptc:keywords"
Note: The images in folder english and deutsch that have the corresponding keywords MUST have the same names. The created corresponding images in folder beide will also have the same name.

Many thanks Phil! Without you I coudn't have worked it out.
Have a nice day.
Greetings pixelpicker
Write a response