ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: photoggerr on August 21, 2013, 01:20:27 PM

Title: "tagsfromfile" does not fully copy all data; breaks Lightroom
Post by: photoggerr on August 21, 2013, 01:20:27 PM
Hi,

I'm posting this as a "bug" since my understanding is that "tagsfromfile" should produce a 1:1 copy of all metadata. Here's the command that I run:

exiftool -tagsfromfile %d%f.NEF -overwrite_original -ext TIFF .

I then import the newly saved TIFF file into Lightroom (v4 and v5), go to DEVELOP -> LENS CORRECTIONS and click on "Enable Profile Corrections". In the case of NEF, Lightroom automatically detects the lens. In the case of the TIFF file, it doesn't.

Sample files: https://dl.dropboxusercontent.com/u/28578986/exiftool_test.rar
Title: Re: "tagsfromfile" does not fully copy all data; breaks Lightroom
Post by: Phil Harvey on August 21, 2013, 09:11:46 PM
1) Your command will copy metadata to the preferred group, so one shouldn't expect the result to be the same.  Add -all:all after -tagsfromfile to copy to the same group.

2) Some of the tags may be unsafe and/or not writable by ExifTool.  You must specify the tag name explicitly to copy unsafe tags.

3) Some of the DNG tags may not be appropriate in a TIFF image.
Title: Re: "tagsfromfile" does not fully copy all data; breaks Lightroom
Post by: photoggerr on August 22, 2013, 12:35:40 PM
Thanks, Phil.

Before writing my post, I tried using '-all:all' but Lightroom still failed to detect the lens. ExifTool also didn't produce any errors (e.g., complained about unsafe tags).

The most puzzling thing is that it only doesn't work only for this particular lens. Any ideas? NEF is fine, TIFF is not.
Title: Re: "tagsfromfile" does not fully copy all data; breaks Lightroom
Post by: Phil Harvey on August 22, 2013, 12:39:44 PM
ExifTool does not complain about unsafe tags unless you use the -v2 option.  But this is only one possibility.  It may be more likely that Lightroom is looking somewhere else for the lens information.  If you can find out where it is looking, then you can write this with ExifTool.

- Phil
Title: Re: "tagsfromfile" does not fully copy all data; breaks Lightroom
Post by: photoggerr on August 22, 2013, 12:47:56 PM
But if -all:all produces identical copy, why would it not work?
Title: Re: "tagsfromfile" does not fully copy all data; breaks Lightroom
Post by: Phil Harvey on August 22, 2013, 12:54:21 PM
-all:all does not necessarily produce an identical copy for reasons 2 and 3 above.

- Phil