Skip to content
Novus Examples
jpg3.1 KB

Intentionally Corrupt — Truncated JPEG

An intentionally corrupt JPEG, truncated to half its bytes, for testing how a decoder handles incomplete image data. This is not a valid image by design.

Preview of Intentionally Corrupt — Truncated JPEG

Specifications

Width
400
Height
300
Corruption
truncated to 50% of bytes
Intentionally Corrupt
true

What is a .jpg file?

JPG is the common extension for JPEG, a lossy raster format that uses discrete cosine transform compression tuned for photographic images. It is 8-bit truecolor with no alpha channel, and quality is traded against file size via a compression factor. It is ubiquitous for photos on the web and from cameras.

How to use this file

Use an example JPG to test decoders, EXIF/metadata parsers, re-encoding quality, and orientation handling, or to confirm converters and image pipelines process baseline and progressive scans correctly.

How to use this file for testing

“Intentionally Corrupt — Truncated JPEG” is a deterministic Novus Examples fixture for Error handling. Deliberately corrupt and invalid files, clearly labelled, for testing how your tool fails.

Documented properties for this file: 400×300 · intentionally corrupt. 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="truncated.jpg" alt="Example image" width="640" loading="lazy">

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