Image MIME Reference
Harlequin-PGB
Global Graphics Page Graphics Buffer
image/vnd.globalgraphics.pgb
VS
Pentax Electronic File
image/x-pentax-pef
Pentax-PEF
A complete technical comparison of Global Graphics Page Graphics Buffer and Pentax Electronic File — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | Harlequin-PGB | Pentax-PEF |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | Yes | Yes |
Global Graphics Page Graphics Buffer
image/vnd.globalgraphics.pgb
Extension
.pgb
Container
Proprietary Harlequin Raster Container
Compression
Uncompressed / Run-Length Encoding (RLE)
Algorithm
Proprietary RLENone
Color Depth
1-bit (Monochrome Separations), 8-bit (Grayscale), 8-bit/10-bit (Contone), CMYK / N-Color Spot Channels
Developed by
Global Graphics Software (Hybrid Software Group)
Released
1990s
Magic Bytes
Unknown (Proprietary Harlequin Header)
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 | Harlequin-PGB | Pentax-PEF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
Harlequin-PGB
Harlequin-PGB Strengths
- Unlike generic 1-bit TIFFs, PGB files inherently encapsulate vital print-job metadata within their headers (e.g., job name, page number, separation colors, screening angles)
- Highly optimized for ultra-fast viewing and processing within professional printing workflows
Limitations
- Completely proprietary and closed-source, locking its usage strictly to Harlequin-powered RIP environments
- Zero support in standard desktop operating systems, web browsers, or consumer image editing software like Photoshop or GIMP
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
Harlequin-PGB
Use Harlequin-PGB when…
- Commercial Printing Output
- Computer-to-Plate (CTP) Manufacturing
- Prepress Soft Proofing (e.g., FirstPROOF)
- Harlequin RIP Spooling Pipelines
Pentax-PEF
Use Pentax-PEF when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- Pentax Camera Archival