Image MIME Reference
DGN
MicroStation Design File
image/x-vnd.dgn
VS
Pentax Electronic File
image/x-pentax-pef
Pentax-PEF
A complete technical comparison of MicroStation Design File and Pentax Electronic File — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | DGN | Pentax-PEF |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
MicroStation Design File
image/x-vnd.dgn
Extension
.dgn
Container
Microsoft OLE Compound File (V8) / IGDS (V7)
Compression
Uncompressed / OLE Structured Storage
Algorithm
None
Color Depth
Indexed Color (V7), 24-bit True Color (V8)
Developed by
Intergraph (Originally) / Bentley Systems (Currently)
Released
1980
Magic Bytes
D0 CF 11 E0 A1 B1 1A E1 (For V8 DGN)
Pentax Electronic File
image/x-pentax-pef
Extension
.pef
Container
TIFF-based (Proprietary)
Compression
Uncompressed / Proprietary Lossless
Algorithm
NonePentax Proprietary Lossless
Color Depth
12-bit (Per Channel), 14-bit (Per Channel)
Developed by
Pentax (now Ricoh Imaging Company, Ltd.)
Released
2003
Magic Bytes
49 49 2A 00 (Little-endian) or 4D 4D 00 2A (Big-endian)
Browser Support Comparison
| Browser | DGN | Pentax-PEF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
DGN
DGN Strengths
- Exceptionally robust at handling massive, coordinate-heavy infrastructure models that would frequently crash older versions of competing CAD software
- Deeply entrenched as the absolute standard format for many global departments of transportation and civil engineering firms
- V8 architecture supports boundless design plane coordinates, eliminating the physical scaling limitations of V7
Limitations
- Deeply proprietary format requiring complex third-party libraries (like the ODA SDK) to parse or write programmatically outside of the Bentley ecosystem
- V8's reliance on the archaic Microsoft OLE Compound File container makes file introspection cumbersome
- Cannot be rendered natively in web browsers without converting to WebGL/Canvas formats or SVG
Pentax-PEF
Pentax-PEF Strengths
- Retains absolute maximum sensor data, enabling massive shadow recovery and highlight protection compared to compressed in-camera JPEGs
- White balance and sharpening are saved as metadata instructions rather than 'baked in', meaning they can be perfectly adjusted in post-production
- Utilizes the standard TIFF container structure, making it relatively straightforward for open-source software like LibRaw to parse
Limitations
- Proprietary format requires continuous updates to third-party processing software whenever Pentax releases a new camera model (unlike the open DNG format)
- Produces very large file sizes compared to standard web formats
- Cannot be directly embedded into web pages or used in standard HTML/CSS contexts
When to choose which format
DGN
Use DGN when…
- Civil Engineering and Plant Design
- Large-scale Architecture and Construction (AEC)
- 2D/3D Infrastructure Modeling
Pentax-PEF
Use Pentax-PEF when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- Pentax Camera Archival