I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-11-17 01:36:08-08 by yair
formating exiftool output
hi, first thanks for the great tool. i need to extract XMP:subject and filename of several subdirs into a single txt file i used:
exiftool.exe -filename "-XMP:subject" -w txt *.jpg
to get many txt files like:
File Name : Copy1-52.jpg Subject : knees, bees, deez
but i need it to be formatted like -
Copy1-52.jpg knees, bees, deez Copy1-62.jpg knees, gees, peez Copy1-82.jpg knees, yees, heez
hope its a silly simple question.
Direct Responses: 9338 | Write a response
Posted on 2008-11-17 05:12:36-08 by bogdan in response to 9337
Re: formating exiftool output
Hi,

Something like this should work:
exiftool -p "$Filename $XMP:subect" -w txt *.jpg

Bogdan
Direct Responses: 9343 | Write a response
Posted on 2008-11-17 11:52:57-08 by exiftool in response to 9338
Re: formating exiftool output
Thanks Bogdan, but I think he wants a single text file:

exiftool -filename -subject -T -r -ext jpg DIR

Where DIR is the root directory containing the JPG images

- Phil
Direct Responses: 9344 | 9347 | Write a response
Posted on 2008-11-17 11:53:46-08 by exiftool in response to 9343
Re: formating exiftool output
Oops. I forgot to pipe the output to a text file:

exiftool -filename -subject -T -r -ext jpg DIR > out.txt

- Phil
Direct Responses: Write a response
Posted on 2008-11-17 14:24:14-08 by louiscar in response to 9343
Re: formating exiftool output
Actually I think what I wanted to do was to have a batch file which I could operate on all files or just specific ones.

I did find that Bogdan's suggestion worked but I had a hell of a time trying to get the inverse to happen, however, I had that working using -TagsFromfile.

So my idea would be - take out crs data to preserve it :
exiftool -o %%f.mie -xmp-crs:all *.nef
and of course I could replace *.nef with %1 abd %2 to allow operation on one or all files in the folder.
To copy them back I was using:
exiftool -tagsFromFile %%f.mie -@ LRcrs.args *.nef the args file just contains: -XMP-crs:all > xmp-crs:all
This could be the last operation before archiving the file

However, it ocurred to me that the whole reason I am have this problem is because I was embedding the sidecar files as a whole, thus replacing everything and since Acdsee doesn't preserve the LR data if I copied its sidecar after an edit using:
exiftool "-xmp<=%%d/%%f.xmp" -ext nef .
I'd lose the LR data.


So now I'm thinking that what I should really be doing is just copying the xmp / ipct data (keywords, categories etc) from each sidecar file when generated by LR or Acdsee then I only have to burn write xmp:crs or -Acdsee:rpp once (if I've done any raw processing in either).

Sorry for the dumbness, I've only been at this for a week and pretty rusty on the command line :)
but I think it would be good to be able to keep raw settings with the file as well as do any keywording in either app and keep them syncronized between them all.

What does excite me is exactly what's stopped me spending a lot of time on keywording in the past. App dependency! I really don't like the idea of changing an app in the future and having to do keywording all over again because they were all stored in an external database.
Direct Responses: 9353 | Write a response
Posted on 2008-11-17 16:11:13-08 by louiscar in response to 9347
Re: formating exiftool output
Humble apologies for replying to what I thought was one of my threads. I'd delete it if I could find out how. Trying to do too many things at once here. Just disregard my response on this subject.
Direct Responses: 9358 | Write a response
Posted on 2008-11-17 17:51:12-08 by yair in response to 9353
Re: formating exiftool output
thanks guys, for a second i thought i was a victim of an identity theft :)
Direct Responses: Write a response