Free webp to jpg
Image MIME Reference
PGM

Portable Graymap

image/x-portable-graymap
VS

Silicon Graphics Image

image/x-rgb
SGI-RGB

A complete technical comparison of Portable Graymap and Silicon Graphics Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature PGM SGI-RGB
Transparency (Alpha) ✕ No Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No ✕ No
Portable Graymap
image/x-portable-graymap
Extension
.pgm
Container Netpbm
Compression Uncompressed
Algorithm
None
Color Depth 8-bit (Grayscale), 16-bit (Grayscale)
Developed by Jef Poskanzer (Netpbm Project)
Released 1988
Magic Bytes
50 32 (ASCII) or 50 35 (Binary)
Full PGM reference →
Silicon Graphics Image
image/x-rgb
Extension
.rgb.sgi.rgba.bw.int.inta
Container SGI Image Header (512 bytes)
Compression Uncompressed / Run-Length Encoding (RLE)
Algorithm
NoneScanline RLE
Color Depth 8-bit (Per Channel), 16-bit (Per Channel)
Developed by Silicon Graphics, Inc. (Paul Haeberli)
Released 1988
Magic Bytes
01 DA
Full SGI-RGB reference →

Browser Support Comparison

Browser PGM SGI-RGB
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
PGM

PGM Strengths

  • Extremely simple format allows custom parsers to be written from scratch in minimal time
  • Supports 16-bit precision, making it highly valuable for scientific, medical, and height-map data where 8-bit precision is insufficient
  • ASCII encoding ('P2') allows manual editing and visual inspection of pixel values directly within a text editor
Limitations
  • Strictly limited to grayscale; cannot display color
  • Lack of compression results in massive file sizes, making it entirely impractical for web delivery or consumer storage
  • Does not support alpha transparency or modern metadata structures
SGI-RGB

SGI-RGB Strengths

  • Supports 16-bit precision per channel and an embedded alpha channel, making it ideal for the demanding compositing workflows of 1990s cinema VFX
  • The scanline-based RLE compression was exceptionally fast to decode on classic MIPS-based SGI workstations
  • Features a straightforward 512-byte header, making it relatively easy to parse and write custom decoders in C or Python
Limitations
  • Completely obsolete and unsupported in modern web environments
  • Replaced entirely by TIFF, OpenEXR, and PNG in modern visual effects and 3D rendering pipelines
  • Lacks support for modern color management via ICC profiles or advanced EXIF metadata

When to choose which format

PGM
Use PGM when…
  • Computer Vision and Machine Learning Pre-processing
  • Scientific and Medical Image Processing
  • Unix/Linux Command-Line Image Pipelines
SGI-RGB
Use SGI-RGB when…
  • Legacy 3D Animation and VFX Textures
  • Silicon Graphics IRIX Workstation Archival
  • 1990s Medical Imaging
Share this comparison