Streaming Image Generation

Stream tens of thousands of tiles into a single PNG or JPEG output without ever buffering the final file in memory. This demo wires image-stitch's StreamingConcatenator directly to the browser so you can preview or save massive images instantly in your preferred format.

Memory-efficient streaming

image-stitch processes scanlines incrementally, emitting compressed chunks as soon as they are encoded. PNG output uses deflate compression, while JPEG output uses DCT-based compression with configurable quality. Unlike canvas-based approaches that copy entire bitmaps, this pipeline keeps memory usage nearly constant no matter how large the output grows.

Try it: Select your source tiles, choose PNG or JPEG output format, set target dimensions up to 50,000 × 50,000 pixels, and stream the result straight to disk.

Source images

Select which pngsuite tiles to randomize across the output.

RGB 32x32

RGB 32×32

Grayscale 32x32

Gray 32×32

RGBA 32x32

RGBA 32×32

Gray+Alpha 32x32

Gray+A 32×32

Output dimensions: 1,000 × 1,000 px

Estimated tiles: ~976

Estimated file size: ~1–3 MB

Streaming output

Preview renders use the same streaming pipeline and collect chunks into a Blob to display below.

Preview

Streaming generation preview
Generate an image to view details.