Skip to content
Novus Examples
pgm170.5 KB

Flat red brick wall (pgm binary)

The same 512x341 photograph written as pgm binary. Greyscale Netpbm. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate t-tex-brick.

Rendered preview of Flat red brick wall (pgm binary)

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

Specifications

Colour Mode
L
Encoding
binary P5
Lossless
true
Width
512
Height
341
Variant
pgm-binary
Source Plate
t-tex-brick.png
Synthetic
true
Disclosure
AI-generated / synthetic. Not a photograph of a real person, place or event.
Schema Version
1
Alt Text
Flat red brick wall
Alt Text Source
prompt

Testing contract

Expected to pass
Scenario
Decode this file and the 24-bit PNG in the same group, compare dimensions and pixel count, then check the decoded properties against the ones declared in its specs.
Expected result
It decodes to 512x341 with colour mode L. The encode is lossless, so it must decode to the reference pixel for pixel. Every member of this group is the same source image, so a reader that returns different dimensions has demonstrably lost something rather than read a different file.

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

“Flat red brick wall (pgm binary)” is a deterministic Novus Examples fixture for Media handling. Generated stills, clips and audio published in several encodings of identical content, so a media pipeline can be tested on format handling, quality loss and frame or sample extraction against a reference that is known rather than assumed.

Documented properties for this file: 512×341 · binary 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="t-tex-brick-pgm-binary.pgm" alt="Example image" width="640" loading="lazy">

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