[Originally posted by kennethb on 2008-07-24 15:33:13-07]
I would like to append the lens information into the existing XMP files.
I'm using Light Room and as we all know it doesn't do a great job reading the LensID info.
Is there a way for ExifTool to add the one line for the lens data to the XMP.
The other option would bt to read the Exif data from the image and then from the XMP before writing a new XMP file?
Thanks
[Originally posted by exiftool on 2008-07-24 16:02:22-07]
I guess I don't understand the question. You can use exiftool to
write to your XMP file. If you write to an XMP tag that already exists,
then the existing value will be replaced, otherwise the new
information will be added. I suggest using XMP:Lens, since
it is likely the Adobe products (and maybe other applications) will
display this tag.
- Phil
[Originally posted by kennethb on 2008-07-24 18:20:53-07]
Okay maybe I was a little vague in my explination.
I've got my library full of images in Adobe LightRoom. So far all I have been able to do successfully is to create a new XMP file from the data in file. Is there a way to keep all of the extra metadata in the XMP file that does not exist in the image file and add the LensID data to the XMP:Lens tag?
Maybe a command I haven't stumbled across yet?
Thanks
[Originally posted by exiftool on 2008-07-24 18:38:38-07]You have an XMP file that you want to add Lens information to:
exiftool -lens="A lens string" FILE.xmp
or
exiftool -tagsfromfile %d%f.jpg "-lens<lenstype" "-lens<lensid" FILE.xmp
Does either one of these commands do what you want?
Both add XMP:Lens to an existing XMP file. The second
command assumes the image with a "jpg" extension in
the same directory as the "xmp" file.
- Phil
[Originally posted by kennethb on 2008-07-26 02:08:26-07]Okay I think I'm closer. Here's what I tried.
exiftool -tagsfromfile *.ARW "-lensid>lens" %d%f.xmp
But it told me it couldn't write to ARW files. Where did I go wrong?
Kenneth
[Originally posted by exiftool on 2008-07-26 14:00:15-07]
ExifTool doesn't yet support writing ARW images.
I have looked into adding support for this, but
it is tricky, partly since the format is a bit of a
moving target, with Sony making significant
changes to the structure with recent camera models.
- Phil
[Originally posted by exiftool on 2008-07-26 14:03:28-07]Oh, wait. You didn't want to write ARW anyway.
Maybe you wanted this:
exiftool -tagsfromfile %d%f.ARW "-lensid>lens" *.xmp
- Phil
[Originally posted by kennethb on 2008-07-27 17:16:41-07]
Hey Phil
That worked like a charm.
Before I go off and write something to do this, is it possible to get that to work recursively? I tried adding a -r but it told me I hadn't specified a file.
Thanks for all your help!
Kenneth
[Originally posted by exiftool on 2008-07-27 23:55:24-07]
Hi Kenneth. Just specify a directory name instead of
*.jpg and add -r to recurse into
subdirectories inside the specified
directory. - Phil
[Originally posted by kennethb on 2008-07-30 19:02:42-07]Hey Phil
Only problem with taking the *.xmp off of the command is it tries to rewrite EXIF for the ARW file. Which it can't do. Is there a way to tell it to look for all the *.xmp files recursively?
Here's what I tried.
exiftool -tagsfromfile %d%f.arw "-lensid>lens" ./2007/ -r
Here's what I'd like.
exiftool -tagsfromfile %d%f.arw "-lensid>lens" ./2007/*.xmp -r
Here's the directory structure
2007
2007-01-01
2007-01-02
2007-02-05
Thanks
[Originally posted by exiftool on 2008-07-30 23:43:07-07]
Hi Kenneth, use "-ext xmp"