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.

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