Skip to content
Novus Examples
pbm8 KB

PBM — Netpbm Test Image (P4)

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

Rendered preview of PBM — Netpbm Test Image (P4)

Rendered preview of the pbm file (8 KB). Download above for the original.

Specifications

Format
Netpbm P4
Width
256
Height
256
Mode
1
Depth
1-bit bitmap
Encoding
binary

What is a .pbm file?

PBM (Portable Bitmap) is the simplest Netpbm format, storing 1-bit black-and-white images as ASCII or packed binary bits after a short text header. It uses no compression and represents each pixel as a single on or off value. It is used for bilevel masks and toolchain intermediates.

How to use this file

Use an example PBM to test bilevel image parsing, bit-packing handling, and pipelines that produce or consume black-and-white masks.

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