Hi,
Very sorry for a lame question, but I'm just not familiar with command tools - I use Nikon camera and lenses which are correctly identified by Aperture, however when I process NEF files in Capture One Pro 9, the Lens Model info is messed up and I can't use it in Aperture (or system wide on Mac) to search for pictures taken shot by particular lens.
NEF file (as read by Aperture) - Lens Model: AF-S Nikkor 16-35mm f/4G ED VR
JPG (processed by Capture One) - Lens Model: 16.0-35.0 mm f/4.0
Could someone please help me with an ExifTool command to update/re-write that Lens Model in my JPG's to the original information recorded in NEF? I keep JPG and NEF files in same directory for a particular photoshoot.
Naively one might suggest this command:
exiftool -lensmodel="AF-S Nikkor 16-35mm f/4G ED VR" -ext jpg DIR
Which will write EXIF LensModel, but I don't know what Aperture will read.
The shotgun approach would be to copy all of metadata from the corresponding NEF files, like this:
exiftool -tagsfromfile %d%f.NEF -all:all -ext jpg DIR
Which is likely overkill, may overwrite other metadata in the JPEG's that you had already written, and will only work if the JPG files have the same names as the NEF's.
- Phil
Quote from: Phil Harvey on June 29, 2016, 04:09:22 PM
The shotgun approach would be to copy all of metadata from the corresponding NEF files, like this:
exiftool -tagsfromfile %d%f.NEF -all:all -ext jpg DIR
Which is likely overkill, may overwrite other metadata in the JPEG's that you had already written, and will only work if the JPG files have the same names as the NEF's.
- Phil
Phil thank very much for the quick response , the second command - even if more brute, works better and does the trick with Aperture. The first command changes the Lens Model, but Aperture reads another info and I still got incomplete lens details.
One more question though if I may - would it be possible to rewrite all all data with the exception of the field Software to keep the info on which software had been used to generate the JPG?
Quote from: Riss on June 30, 2016, 03:08:37 PM
One more question though if I may - would it be possible to rewrite all all data with the exception of the field Software to keep the info on which software had been used to generate the JPG?
Sure. Just add
--software to the command after
-all:all. You may exclude as many tags as you want from being copied by adding more arguments like this, with the exception that individual makernote tags may not be excluded because the makernotes are copied as a block.
- Phil
Quote from: Phil Harvey on June 30, 2016, 03:36:34 PM
Quote from: Riss on June 30, 2016, 03:08:37 PM
One more question though if I may - would it be possible to rewrite all all data with the exception of the field Software to keep the info on which software had been used to generate the JPG?
Sure. Just add --software to the command after -all:all. You may exclude as many tags as you want from being copied by adding more arguments like this, with the exception that individual makernote tags may not be excluded because the makernotes are copied as a block.
- Phil
Perfect! Thank you very much Phil!