ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: msbc on May 31, 2010, 08:37:03 PM

Title: Copying Lens info from NEF's
Post by: msbc on May 31, 2010, 08:37:03 PM
Hi Phil,

Following an answer by you in the Archives (https://exiftool.org/forum/index.php/topic,2271.0.html) for copying LensID using composite tags I tried the following:
exiftool -TagsFromFile MSC_091015_0232.NEF -Nikon:lensidnumber -lenfstops -Nikon:minfocallength -Nikon:maxfocallength -Nikon:MaxApertureAtMinFocal -Nikon:MaxApertureAtMaxFocal -MCUVersion -Nikon:LensType -v2 -m MSC_091015_0232.tiff
but the TIF target was not updated:
Setting new values from MSC_091015_0232.NEF
Writing Nikon:LensIDNumber if tag exists
Writing Nikon:LensIDNumber if tag exists
Writing Nikon:LensIDNumber if tag exists
Writing Nikon:MinFocalLength if tag exists
Writing Nikon:MinFocalLength if tag exists
Writing Nikon:MinFocalLength if tag exists
Writing Nikon:MaxFocalLength if tag exists
Writing Nikon:MaxFocalLength if tag exists
Writing Nikon:MaxFocalLength if tag exists
Writing Nikon:MaxApertureAtMinFocal if tag exists
Writing Nikon:MaxApertureAtMinFocal if tag exists
Writing Nikon:MaxApertureAtMinFocal if tag exists
Writing Nikon:MaxApertureAtMaxFocal if tag exists
Writing Nikon:MaxApertureAtMaxFocal if tag exists
Writing Nikon:MaxApertureAtMaxFocal if tag exists
Writing Nikon:MCUVersion if tag exists
Writing Nikon:MCUVersion if tag exists
Writing Nikon:MCUVersion if tag exists
Writing Nikon:LensType if tag exists
======== MSC_091015_0232.tiff
Rewriting MSC_091015_0232.tiff...
  Editing tags in: ExifIFD IFD0 MakerNotes TIFF
  Creating tags in:
  FileType = TIFF
  MIMEType = image/tiff
  ExifByteOrder = MM
  Rewriting IFD0
  Rewriting XMP
  Rewriting IPTC
    [nothing changed]
  Rewriting ExifIFD
  Rewriting ICC_Profile
  Rewriting GPS
  Copying 567 image data blocks
Nothing changed in MSC_091015_0232.tiff
    0 image files updated
    1 image files unchanged


Any ideas?

Thanks,
Mark
Title: Re: Copying Lens info from NEF's
Post by: Phil Harvey on June 01, 2010, 07:28:07 AM
Hi Mark,

You will only be able to write these Nikon tags to images which already contain the Nikon maker notes.  For other images, I suggest writing the XMP:Lens tag.

- Phil
Title: Re: Copying Lens info from NEF's
Post by: msbc on June 03, 2010, 12:58:59 AM
Phil,

Is it possible to copy the Maker Notes from NEF to TIFF? Using XMP:Lens won't accomplish what I need as only the LensID will be displayed/searchable from within my DAM software - Aperture and Lightroom.

Mark
Title: Re: Copying Lens info from NEF's
Post by: Phil Harvey on June 03, 2010, 07:26:31 AM
Sure, you can copy the maker notes from NEF to TIFF:

exiftool -tagsfromfile SRC.nef -make -model -makernotes DST.tif

Note that I also copy the Make and Model tags because these are required to properly recognize the makernotes.

- Phil
Title: Re: Copying Lens info from NEF's
Post by: msbc on June 14, 2010, 02:08:16 AM
Phil,

I've found that after copying the make model and makernotes tags that all the Lens related data is available - no need to copy the tags listed in the Archived post.

Mark