Hi,
I ran into problem where only partial metadata is being copied from SOURCE to TARGET when using the "--tagsfromfile SOURCE.NEF TARGET.TIFF" command. It also seems to round off numbers (i.e., 160.061349693252 becomes 160)
For instance:
>exiftool -v -tagsfromfile SOURCE.NEF TARGET.TIFF
Setting new values from SOURCE.NEF
======== TARGET.TIFF
Rewriting TARGET.TIFF...
Editing tags in: Composite Ducky ExifIFD File FotoStation GPS IFD0 IFD2 IPTC J
FIF KDC_IFD KodakIFD MIE-Camera MIE-Doc MIE-Flash MIE-GPS MIE-Geo MIE-Image MIE-
Lens MIE-Main MIE-Preview MakerNotes MetaIFD PDF PNG Photoshop PostScript SubIFD
SubIFD1 SubIFD2 TIFF XMP
FileType = TIFF
MIMEType = image/tiff
ExifByteOrder = II
Rewriting IFD0
Creating XMP
Creating IPTC
Creating ExifIFD
Creating GPS
Copying 1 image data blocks
1 image files updated
Comparing the two files...
>exiftool -all:GpsAltitude FILE.NEF
GPS Altitude : 160.061349693252 m
GPS Altitude : 160.0613497 m
GPS Altitude : 160 m Above Sea Level
>exiftool -all:GpsAltitude FILE.TFF
GPS Altitude : 160 m
GPS Altitude : 160 m Above Sea Level
This makes Lightroom, for instance, display different altitude (525.1ft for SOURCE and 524.9 for TARGET). Not a big difference but things don't look so good for the "Lens" tag that breaks Lightroom's lens correction since 17.0-50.00 mm f/2.8 from SOURCE becomes 17-50mm f/2.8 in TARGET.
Am I doing something wrong?
Tags are copied by the value you see when extracting. Typically, if you want to avoid rounding, add -n or use -TAG# when copying.
About the Lens tag, I can't say exactly why the zeros are getting dropped. The XMP:Lens is a simple string that ExifTool does not tamper with.
- Phil
The -n worked.
Still don't know what to do with the Lens field(s). I sent you a private message with a link to the RAW file and would appreciate if you could check it out.
Thank you.
I got the NEF file, thanks. This file contains no XMP, and the lens information is stored entirely in the Nikon maker notes.
The Nikon:Lens tag is extracted as "17-50mm f/2.8", and copied to XMP:Lens by your command. I can't comment on LightRoom, but this may be a more appropriate way to copy lens information in your case:
exiftool -v -tagsfromfile SOURCE.NEF -all "-lens<lensid" TARGET.TIFF
Which will copy "Sigma 17-50mm F2.8 EX DC OS HSM" into XMP:Lens.
- Phil