NEF (Nikon RAW format) [en] [Moved]

Published on 06.19.2009 by Toni

Page moved to http://r.outlyer.net/photo:nef

NEF includes an embedded, full size, jpeg copy. Roughly equivalent to exporting using the "basic" (lower quality setting, 85% jpeg-quality). This jpeg contains no metadata though (it could be re-injected from the source NEF).

According to this blog post D200 produce exactly the same images (basic conversion vs embedded); my tests on a D60 show some difference (e.g. the image is slightly cropped).

Useful commands

Extraction of embedded jpg:
$ exiftool -b -JpgFromRaw image.nef > image.jpg

Copy of exif data:
$ exiftool -TagsFromFile source.nef target.jpg

Alternatively:
$ exiv2 ex -e e source.nef # Extraction *
$ mv source.exv target.exv # Names must match
$ exiv2 in -i e target.jpg # Injection

* Also: $ exiftool -exif -b source.nef > target.exv

Comparison of images:
$ compare -metric MSE source1.jpg source2.jpg diff.png
Also useful metric: PSNR

Maker-specific extra detailed information (Lens model, shutter count, focus mode…):
$ exiftool -nikon FILE.NEF|FILE.JPG

Extraction of ICC profile (In-camera files don't include them, at least on the D60; RAW processing software usually does embed them):
$ exiftool -icc_profile -b FILE.JPG > profile.icc

Insertion of ICC profile (Required for embedded JPGs shot in AdobeRGB –Nikon's color mode II–):
$ exiftool '-ICC_Profile<=InputFile.icc' FILE.JPG

Last update: July 10th 2009

History

2009-07-10: Added exiftool's -exif, -TagsFromFile, -nikon and -icc_profile
2009-06-19: Initial version

Useful references

There are no comments about this page

Leave your comment

XHTML: You can use tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Your comment will require approval before publishing.

Posts RSS Comments RSS


Bad Behavior has blocked 64 access attempts in the last 7 days.