Free webp to jpg
Image MIME Reference
NAPLPS

North American Presentation Level Protocol Syntax

image/naplps
VS

Portable Graymap

image/x-portable-graymap
PGM

A complete technical comparison of North American Presentation Level Protocol Syntax and Portable Graymap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature NAPLPS PGM
Transparency (Alpha) ✕ No ✕ No
Animation Support Yes ✕ No
Progressive Loading Yes ✕ No
HDR Support ✕ No Yes
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No ✕ No
North American Presentation Level Protocol Syntax
image/naplps
Extension
.nap.naplps
Container NAPLPS Byte Stream
Compression Uncompressed (Tokenized ASCII Commands)
Algorithm
None (Coordinate encoding)
Color Depth 16-color palette (Indexed from larger color spaces)
Developed by ANSI / CSA (Based on Canadian CRC's Telidon)
Released 1983
Magic Bytes
1B (Variable / ESC sequences)
Full NAPLPS reference →
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 →

Browser Support Comparison

Browser NAPLPS PGM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
NAPLPS

NAPLPS Strengths

  • Extremely bandwidth-efficient, enabling colorful graphical interfaces over early 300 baud dial-up connections
  • Resolution-independent vector scaling allowed the exact same file to be displayed accurately on varied early PC monitors and television sets
Limitations
  • Completely obsolete and unsupported by modern web technologies
  • Relies heavily on stateful parsing and terminal emulators rather than straightforward file decoding
  • Easily misidentified by MIME sniffers as plain text or generic binary streams due to the lack of a standardized file header
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

When to choose which format

NAPLPS
Use NAPLPS when…
  • 1980s Videotex Services
  • Prodigy Online Service Graphics
  • Historical BBS Terminal Graphics
  • Legacy Teletext Broadcasts
PGM
Use PGM when…
  • Computer Vision and Machine Learning Pre-processing
  • Scientific and Medical Image Processing
  • Unix/Linux Command-Line Image Pipelines
Share this comparison