Image MIME Reference
Nikon-NEF
Nikon Electronic Format
image/x-nikon-nef
VS
PCO B16 Image
image/vnd.pco.b16
PCO-B16
A complete technical comparison of Nikon Electronic Format and PCO B16 Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | Nikon-NEF | PCO-B16 |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
Nikon Electronic Format
image/x-nikon-nef
Extension
.nef
Container
TIFF
Compression
Uncompressed / Lossless Compressed / Lossy Compressed (High Efficiency)
Algorithm
NoneNikon Proprietary LosslessNikon High Efficiency Lossy
Color Depth
12-bit (Per Channel), 14-bit (Per Channel)
Developed by
Nikon Corporation
Released
1999
Magic Bytes
49 49 2A 00 or 4D 4D 00 2A
PCO B16 Image
image/vnd.pco.b16
Extension
.b16
Container
PCO B16 Binary Container
Compression
Uncompressed (Raw Sensor Data)
Algorithm
None
Color Depth
16-bit (Monochrome or Bayer Raw Color)
Developed by
PCO AG (Excelitas PCO GmbH)
Released
Early 2000s
Magic Bytes
50 43 4F 2D
Browser Support Comparison
| Browser | Nikon-NEF | PCO-B16 |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
Nikon-NEF
Nikon-NEF Strengths
- Retains maximum sensor data, allowing extreme recovery of highlights and shadows that would be permanently lost in a JPEG
- White balance, sharpening, and color profiling are saved as metadata instructions rather than 'baked in', meaning they can be completely altered in post-production without degrading the image
- Embeds a high-quality JPEG preview inside the raw file for rapid culling and viewing
Limitations
- Proprietary format means it requires constant updates to raw processing engines every time Nikon releases a new camera model
- Produces very large file sizes (often 20MB to 50MB+ per image depending on sensor resolution and bit-depth)
- Cannot be directly embedded into web pages or used in standard HTML/CSS contexts
PCO-B16
PCO-B16 Strengths
- Preserves exact, uncompressed 16-bit raw sensor data, which is critically important for accurate scientific measurements, fluorescence microscopy, and photometry
- The simple, linear struct header is highly predictable and easy to parse in custom Python, MATLAB, or C++ scripts for researchers building bespoke pipelines
Limitations
- Generates massive file sizes due to the complete lack of image compression [1.3.1]
- Completely unsupported by standard operating systems, web browsers, and consumer image editing suites
- Strictly tied to the hardware and software ecosystems of a single camera manufacturer
When to choose which format
Nikon-NEF
Use Nikon-NEF when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- High Dynamic Range (HDR) Imaging Archival
PCO-B16
Use PCO-B16 when…
- Microscopy and Life Sciences
- High-Speed Camera Recording
- Machine Vision and Industrial Inspection
- Scientific Photometry