Nikon

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Link to various Nikon Sample Files)
m (Change telparia.com samples link to template)
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Cameras and Digital Image Sensors
 
|subcat=Cameras and Digital Image Sensors
|extensions={{ext|nef}}, {{ext|nrw}}
+
|extensions={{ext|nef}}, {{ext|nrw}}, {{ext|ndf}}, {{ext|ndr}}
 
|pronom={{PRONOM|fmt/202}}
 
|pronom={{PRONOM|fmt/202}}
 
}}
 
}}
Line 11: Line 11:
 
* [http://www.nikonimglib.com/nefcodec/index.html.en Download NEF codec (Windows only)]
 
* [http://www.nikonimglib.com/nefcodec/index.html.en Download NEF codec (Windows only)]
 
* [http://www.cybercom.net/~dcoffin/dcraw/scan.c C-source of NEF reader from Dave Coffin's homepage]
 
* [http://www.cybercom.net/~dcoffin/dcraw/scan.c C-source of NEF reader from Dave Coffin's homepage]
* Phil Harvey's [http://www.sno.phy.queensu.ca/~phil/exiftool/ ExifTool] can read EXIF metadata from Nikon NEF files. See also [http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html Nikon EXIF tags].
+
* Phil Harvey's [https://exiftool.org/ ExifTool] can read EXIF metadata from Nikon NEF files. See also [https://exiftool.org/TagNames/Nikon.html Nikon EXIF tags].
 
* [http://lclevy.free.fr/nef/ Nikon Electronic File (NEF) file format description]
 
* [http://lclevy.free.fr/nef/ Nikon Electronic File (NEF) file format description]
  
Line 40: Line 40:
  
 
== NDF ==
 
== NDF ==
'''N'''ikon '''D'''ust '''F'''ile.
+
'''N'''ikon '''D'''ust '''F'''ile. Contains data used to help compensate for lens dust and similar defects.
 
* [http://www.cybercom.net/~dcoffin/dcraw/read_ndf.c C-source of NDF reader from Dave Coffin's homepage]
 
* [http://www.cybercom.net/~dcoffin/dcraw/read_ndf.c C-source of NDF reader from Dave Coffin's homepage]
  
== Other links ==
+
== NDR ==
* [https://archive.org/details/generalmanual_000060551 Nikon Coolpix 4800 manual]
+
NDR (Nikon Capture Image Dust Off File) is the predecessor of NDF. An '''.ndr''' file does not contain image data, but points to a file that does.
* [{{FormatInfo
+
|formattype=electronic
+
|subcat=Cameras and Digital Image Sensors
+
|extensions={{ext|nef}}, {{ext|nrw}}
+
|pronom={{PRONOM|fmt/202}}
+
}}
+
Formats used by '''Nikon''' cameras include:
+
  
== NEF ==
+
== NKSC ==
'''N'''ikon '''E'''lectronic '''F'''ormat is Nikon's RAW digital image format for DSLR cameras. It is a close relative to [[TIFF]], and has a standard TIFF header. NEF files are usually big-endian, with the exception of files from the Coolpix 5700, which were little-endian. Data can be either 12- or 14-bit (from 2005's D200 onwards), and depending on the camera may be uncompressed, losslessly compressed, or lossily compressed.
+
NKSC ([[Nikon Sidecar]]) files have metadata for NEF files. See separate article for more info.
* [http://www.nikonimglib.com/nefcodec/index.html.en Download NEF codec (Windows only)]
+
* [http://www.cybercom.net/~dcoffin/dcraw/scan.c C-source of NEF reader from Dave Coffin's homepage]
+
* Phil Harvey's [http://www.sno.phy.queensu.ca/~phil/exiftool/ ExifTool] can read EXIF metadata from Nikon NEF files. See also [http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html Nikon EXIF tags].
+
* [http://lclevy.free.fr/nef/ Nikon Electronic File (NEF) file format description]
+
  
===NEFs for the Nikon D1===
+
== Software ==
NEF files from the Nikon D1, the first all-Nikon digital SLR from 1999, differ from later cameras in a few ways:
+
* Refer to [[Cameras and Digital Image Sensors#Software]]
  
* '''Image data had no defined colour space.''' Many users have observed that the D1's native colour space is very similar to NTSC (see [http://www.earthboundlight.com/phototips/nikon-color-modes.html The Story of Nikon Color Modes]). Later cameras used sRGB or Adobe RGB.
+
== Sample files ==
* '''Raw data is not raw data.''' The image data itself, not just the image's metadata, is altered depending on the white balance setting. Later cameras do not alter image data based on the white balance setting.
+
* [https://www.rawsamples.ch/index.php/en/nikon Nikon Sample Files on rawsamples.ch]
* '''EXIF data differs slightly.''' In particular, the D1 does not use the LensIDNumber tag as later cameras do. It also does not store the number of shutter actuations or the serial number of the camera.
+
* {{DexvertSamples|image/nikon}}
 
+
===Encryption===
+
Starting with the Nikon D2H, Nikon attempted to encrypt white balance information to prevent third-party tools from being able to render an image properly (which Nikon claimed was to ensure that images would always render consistently). This was swiftly [http://news.cnet.com/Nikons-photo-encryption-reported-broken/2100-1030_3-5679848.html broken].
+
 
+
Nikon also attempts to encrypt lens data. This has also been broken.
+
 
+
=== Coolpix variant ===
+
* [http://e2500.narod.ru/raw_format_e.htm http://e2500.narod.ru/raw_format_e.htm] Some Nikon Coolpix cameras can be convinced to shoot in RAW.
+
* [http://e2500.narod.ru/raw2nef_e.htm Processing the RAW data] Convert the RAW data to Coolpix 5700 NEF format.
+
 
+
== Coolscan NEF variant ==
+
 
+
Nikon Coolscan software generate .nef files that are different from cameras. Dave Coffin has written [http://www.cybercom.net/~dcoffin/dcraw/scan.c C source code to decode these files].
+
 
+
== NRW ==
+
'''N'''ikon '''R'''A'''W'''. 12-Bit-RGB-CCD-RAW digital image format for Coolpix cameras.
+
* [http://www.nikonimglib.com/nrwcodec/index.html.en Download NRW codec (Windows only)]
+
The NRW format is virtually identical to the NEF format, with a different compression and curves. There is no real reason to have changed the extension except, maybe, to discriminate entry level camera supported by the codec for Windows.
+
 
+
== NDF ==
+
'''N'''ikon '''D'''ust '''F'''ile.
+
* [http://www.cybercom.net/~dcoffin/dcraw/read_ndf.c C-source of NDF reader from Dave Coffin's homepage]
+
  
 
== Other links ==
 
== Other links ==
 
* [https://archive.org/details/generalmanual_000060551 Nikon Coolpix 4800 manual]
 
* [https://archive.org/details/generalmanual_000060551 Nikon Coolpix 4800 manual]
* [https://www.rawsamples.ch/index.php/en/nikon Nikon Sample Files on rawsamples.ch]
+
* [https://groups.google.com/forum/#!topic/droid-list/1juY20TDCcA False positives in Nikon NEF and proposed new signatures to reduce those]

Latest revision as of 02:55, 28 December 2023

File Format
Name Nikon
Ontology
Extension(s) .nef, .nrw, .ndf, .ndr
PRONOM fmt/202

Formats used by Nikon cameras include:

Contents

[edit] NEF

Nikon Electronic Format is Nikon's RAW digital image format for DSLR cameras. It is a close relative to TIFF, and has a standard TIFF header. NEF files are usually big-endian, with the exception of files from the Coolpix 5700, which were little-endian. Data can be either 12- or 14-bit (from 2005's D200 onwards), and depending on the camera may be uncompressed, losslessly compressed, or lossily compressed.

[edit] NEFs for the Nikon D1

NEF files from the Nikon D1, the first all-Nikon digital SLR from 1999, differ from later cameras in a few ways:

  • Image data had no defined colour space. Many users have observed that the D1's native colour space is very similar to NTSC (see The Story of Nikon Color Modes). Later cameras used sRGB or Adobe RGB.
  • Raw data is not raw data. The image data itself, not just the image's metadata, is altered depending on the white balance setting. Later cameras do not alter image data based on the white balance setting.
  • EXIF data differs slightly. In particular, the D1 does not use the LensIDNumber tag as later cameras do. It also does not store the number of shutter actuations or the serial number of the camera.

[edit] Encryption

Starting with the Nikon D2H, Nikon attempted to encrypt white balance information to prevent third-party tools from being able to render an image properly (which Nikon claimed was to ensure that images would always render consistently). This was swiftly broken.

Nikon also attempts to encrypt lens data. This has also been broken.

[edit] Coolpix variant

[edit] Coolscan NEF variant

Nikon Coolscan software generate .nef files that are different from cameras. Dave Coffin has written C source code to decode these files.

[edit] NRW

Nikon RAW. 12-Bit-RGB-CCD-RAW digital image format for Coolpix cameras.

The NRW format is virtually identical to the NEF format, with a different compression and curves. There is no real reason to have changed the extension except, maybe, to discriminate entry level camera supported by the codec for Windows.

[edit] NDF

Nikon Dust File. Contains data used to help compensate for lens dust and similar defects.

[edit] NDR

NDR (Nikon Capture Image Dust Off File) is the predecessor of NDF. An .ndr file does not contain image data, but points to a file that does.

[edit] NKSC

NKSC (Nikon Sidecar) files have metadata for NEF files. See separate article for more info.

[edit] Software

[edit] Sample files

[edit] Other links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox