It is impossible to edit metadata DNG images created from some Nikon NEF images

Started by serg.sly, December 20, 2010, 02:39:03 PM

Previous topic - Next topic

serg.sly

Hello Phil !

I have problem with DNG files created from some Nikon cameras

I did folow:

exiftool -Description="test" /Users/serg/Pictures/TT_4506/FIAGT_1480.DNG

Warning: Can't read MakerNotes data. Ignored. - /Users/serg/Pictures/TT_4506/FIAGT_1480.DNG

Error: [minor] Bad MakerNotes offset for SensorPixelSize - /Users/serg/Pictures/TT_4506/FIAGT_1480.DNG
    0 image files updated
    1 files weren't updated due to errors


metadata does not write to image.

NEF images from cameras:

NIKON D1H
NIKON D1X

Thank you.

- Serg.

Phil Harvey

Hi Serg,

Without looking at a sample I can't say for sure, but the Adobe DNG converter is known to corrupt some makernotes when converting a raw image to DNG.  I would guess that is the problem here too.

- Phil

Edit: I should have mentioned that you can use the -m option to ignore the minor error and write the file anyway.
...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 ($).

Phil Harvey

Thanks for the sample.

Yes.  The makernotes have been corrupted by the DNG converter and the SensorPixelSize value has been truncated (among other problems).

You can use the -m option to safely ignore this minor error.  In this case, exiftool treats the makernotes as a black box and rewrites them as-is without attempting to fix the problem.

- Phil

Edit: Fixed incorrect forum formatting code
...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 ($).