image-stitch

TypeScript tools for fusing many PNGs into a single image stream, without touching Canvas or native binaries. Works in browsers, Node.js, and any runtime with typed arrays.

Why image-stitch?

Streaming friendly

Produce PNG chunks as they are generated so that you never buffer entire gigabyte-scale spritesheets in memory.

Layout aware

Compose rows, columns, and responsive grids with automatic padding that respects alpha transparency.

Typed & tested

Written in modern TypeScript, bundled for browsers, and verified by more than one hundred unit tests.

No canvas required

Decode, transform, and rebuild PNGs in pure JavaScript so you can run on the server, worker threads, or edge runtimes.

Get started

Install via npm install image-stitch and follow the step-by-step guides that walk through Node.js scripts, browser usage, and streaming pipelines.

Dive into the Guides & API reference →

Play with live demos and pngsuite samples →