Image Formats

Radiography: PPM Format

Portable Pixmap: Pixels in plain text

PPM Example 3x2 scaled

P3

3 2

255

# Row 1

255 0 0 0 255 0 0 0 255

# Row 2

255 255 0 255 255 255 0 0 0

Magic Number

P3 (ASCII) or P6 (Binary).

Dimensions

Width and Height in pixels.

Max Value

Maximum value for each channel.

RGB Data

Sequence of R G B triples.

What is PPM?

Portable Pixmap is an extremely simple image format, designed to be easy to read and write by programs without external libraries.

Netpbm Variants

PBM (B/W), PGM (Grayscale), PPM (RGB Color).

Perfect for learning and debugging graphics algorithms.

View gallery generator code →

Simplicity

You can create an image with a simple text editor.

No Compression

Files are large, but they preserve every original bit.

Interoperable

Common bridge between different image formats.

Debuggable

Easy to inspect if something fails during rendering.

logo xeland314
Pure PixelsCrafted Software.