Sample image files

Generate PNG, JPEG, WebP, and SVG fixtures locally for rendering, upload limits, dimensions, transparency, and MIME validation.

Browser-generated image fixtures include exact-size pixels, color bars, gradients, transparency, and SVG markup.

Files in this category are generated locally and are never uploaded.

Open local generator

Local image fixtures for upload, rendering, and MIME tests

Image fixtures are generated inside your browser and are never uploaded. Use the presets to create deterministic inputs, then inspect the resulting dimensions, MIME type, magic bytes, and exact byte size.

Test method

Generate one natural-size image and one exact-byte image, then exercise the same upload and preview path used by production.

Validation steps

Confirm the decoded dimensions and transparency, compare the declared MIME with the magic bytes, and assert the final byte length before upload.

Expected result

The browser decodes the image, the dimensions match the preset, and exact-size output equals the requested bytes without changing the visible pixels.

Failure signals

Reject a mismatched extension, truncated signature, unexpected alpha loss, wrong dimensions, or a response that accepts a file beyond the configured limit.

Copied