Skip to content
Novus Examples
pgm64 KB

PGM — Netpbm Test Image (P5)

A 256×256 fruit still-life image as binary Netpbm P5 (8-bit greyscale) — the minimal, header-plus-raw-pixels family used across Unix imaging tools. For testing Netpbm parsers and conversion.

Rendered preview of PGM — Netpbm Test Image (P5)

Rendered preview of the pgm file (64 KB). Download above for the original.

Specifications

Format
Netpbm P5
Width
256
Height
256
Mode
L
Depth
8-bit greyscale
Encoding
binary

What is a .pgm file?

PGM (Portable Graymap) is a Netpbm-family format storing single-channel greyscale images as ASCII or raw binary values with a simple text header. It uses no compression and supports 8- or 16-bit gray levels. It is frequently used in image processing and computer vision.

How to use this file

Use an example PGM to test greyscale parsing, verify intensity output from processing pipelines, or provide a simple input for computer-vision and OCR toolchains.

How to use this file for testing

“PGM — Netpbm Test Image (P5)” is a deterministic Novus Examples fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: 256×256 · binary · Netpbm P5. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

For image AI or enhancement tools, run the model or filter on this file and diff against the clean or ground-truth companion in the same group when available. Keep seeds and documented damage parameters in your evaluation notes so regressions are attributable.

Code examples

<img src="testcard.pgm" alt="Example image" width="640" loading="lazy">

Generated by generation/images_formats2.py. Free for any use, no attribution required — license.