Image MIME Reference
FITS
Flexible Image Transport System
image/fits
VS
Pentax Electronic File
image/x-pentax-pef
Pentax-PEF
A complete technical comparison of Flexible Image Transport System and Pentax Electronic File — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | FITS | Pentax-PEF |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
Flexible Image Transport System
image/fits
Extension
.fits.fit.fts
Container
FITS
Compression
Uncompressed / Tile Compressed (Rice, GZIP)
Algorithm
UncompressedRiceGZIPHcompress
Color Depth
8-bit, 16-bit, 32-bit, 64-bit (Float/Double)
Developed by
IAU FITS Working Group / NASA
Released
1981
Magic Bytes
53 49 4D 50 4C 45 20 20 3D 20
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 | FITS | Pentax-PEF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
FITS
FITS Strengths
- The undisputed global standard for archiving and sharing astronomical data
- Self-documenting: Headers are written in plain ASCII, ensuring data is readable decades later regardless of software
- Supports incredibly high dynamic range, N-dimensional arrays, and complex binary tables
Limitations
- No support in standard consumer software or web browsers
- Uncompressed raw FITS files from modern telescopes can be excessively large
- Does not use standard metadata models like EXIF or XMP, requiring specialized parsers
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
FITS
Use FITS when…
- Astronomy & Astrophysics
- Space Telescope Data (Hubble, JWST)
- Scientific Data Archiving
- Spectroscopy
Pentax-PEF
Use Pentax-PEF when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- Pentax Camera Archival