Main Menu

Lens ID consistency

Started by surfer, March 27, 2011, 09:51:15 AM

Previous topic - Next topic

wimvan

Phil


Tamron SP AF 180mm f/3.5 Di LD IF Macro

I have a nef and a jpg.
http://www.fotospotter.be/download/VMW_6682.nef

http://www.fotospotter.be/download/VMW_6682.jpg

Phil Harvey

Unfortunately I'm on a slow network connection from home, so it will be Monday before I can take a look at these files, but I was thinking about maybe something like this:

exiftool -tagsfromfile %d%f.nef "-lensmodel<lensid" -ext jpg DIR

Where DIR is the name of a directory containing the JPG and NEF images.  Alternatively, the full maker notes (including the original lens data) could be recovered with:

exiftool -tagsfromfile %d%f.nef -makernotes -ext jpg DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

wimvan

Thanks, I could copy all Makernotes from NEF and inserted them into the JPG's.
At last these now are conform each other.
One question, perhaps a mazy person here, but may the jpgs be placed somewhere else (other DIR on another drive) ?

anyway, this is working nice.

Phil Harvey

The JPG files may be in any directory.  Just specify the DIR for the JPG image in the command, and specify the directory for the NEF images in the -tagsFromFile argument:

exiftool -tagsfromfile d:\directory\for\nef\files\%f.nef -makernotes -ext jpg DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).