FormatSwap › Formats › PPM

The PPM format

An image format you could write by hand, and the simplest way to pass pixels between programs.

Full name
Netpbm image formats
Appeared
1988
File extensions
.ppm, .pgm, .pbm, .pnm
Our verdict
Keep it See why

History

Why it was invented

Jef Poskanzer invented PBM in the 1980s “to provide the computer graphics world with a common, trouble-free format, a lingua-franca, for bitmaps”.[1] It “was designed to be simple enough that it could transmitted within an email message”, avoiding corruption in transit.[1][2]

What it was first used for

Its first purpose was that email exchange.[1] In 1988, Poskanzer distributed Pbmplus, the forerunner of Netpbm.[1]

What happened next

Netpbm replaced the then-unmaintained Pbmplus in 1993.[1][2] A newer format, PAM, appeared in August 2000 and added an alpha channel.[1][2]

Pros and cons

Pros

  • So simple that a beginner can write one in a few lines of code.
  • No libraries needed and no patents.
  • Plain-text mode can be read by humans.
  • Handy as a go-between for programs.

Cons

  • No compression, so files are huge.
  • Almost no metadata and no colour-space information.
  • Not a sharing format.

Use cases

  • Programming lessons.
  • Passing frames through command-line pipelines.
  • Testing image software.

Pitfalls

  • Most ordinary photo apps can't open it.
  • Plain-text variants are enormous, so use the binary form if you're using one at all.
  • No colour profile means colours may shift.

Should PPM be discontinued?

Keep it

Keep it. It's practically an educational tool, and its simplicity is the whole point. Removing it would save nothing, because the format's upkeep amounts to about a page of description.

The perfect format's lessons begin here: a format simple enough to fully understand can't die, because anyone can rebuild a reader for it in an afternoon.

This verdict is FormatSwap's opinion. “Discontinue” means stop creating new files, not stop reading old ones. How we decide.

PPM files in FormatSwap

Media Converter opens and creates PPM files.

Download Media Converter
Version 1.1 · Windows 10 & 11 (64-bit) · 64 MB · No installation needed

Related formats

Sources

Numbers in the history above link to these pages. They cover the history section only; the pros, cons and verdict are our own assessment.

  1. Netpbm History, Bryan Henderson, Netpbm
  2. Netpbm, Wikipedia