imagescript/ImageScript
Pure TypeScript image processing that runs everywhere
Featured achievements
The project's latest awards
#1 Repository of the week
#2 Repository of the week
#2 Repository of the week
📦 ImageScript: Pure TypeScript Image Processing
Decode, edit, and encode images in pure TypeScript. No WASM, no native binaries, no deps. Runs everywhere.
ImageScript by imagescript is a pure TypeScript image processing library. It decodes, edits, and encodes PNG, JPEG, WebP, AVIF, GIF, and many other formats — all in TypeScript, with no WebAssembly, no native binaries, and no dependencies. Works on Node.js 22.13+, Deno, Bun, browsers, and edge runtimes like Cloudflare Workers and Vercel Edge. Large images split across worker threads where the runtime supports it. Ships with type definitions and works with both import and require().
✨ Highlights
- Cross-runtime support: Node.js, Deno, Bun, browsers, Cloudflare Workers, Vercel Edge, Deno Deploy — all without native dependencies
- Wide format support: PNG, JPEG, WebP, AVIF, JPEG XL, GIF, APNG, BMP, QOI, TGA, Netpbm, TIFF, ICO, Radiance HDR — decode and encode where listed
- HDR gain maps: Read and preserve Ultra HDR, iPhone JPEGs, AVIF, and JPEG XL gain maps through edits
- Animation handling: Decode GIF, APNG, WebP, and JPEG XL animations; encode as GIF, APNG, or WebP, frame-by-frame or all at once
- Text and SVG rendering: Render TrueType, OpenType, and WOFF fonts with color emoji and variable fonts; render SVG including text
- Image operations: Resize, crop, rotate, trim, round corners, composite with opacity and blend modes, blur, and color filters
- Color management: Embedded profiles like Display P3 and Adobe RGB convert to sRGB on decode, matching browser appearance
💡 Why it matters
Most image libraries lean on native bindings or WebAssembly. ImageScript does everything in pure TypeScript, so it installs anywhere npm works — or Deno, or a browser via CDN — with zero native compilation steps. Color profile handling and HDR gain maps are rare in JavaScript libraries, and animation round-tripping across formats is even rarer. For edge runtimes and cross-platform tooling, a dependency-free image pipeline that still covers the major formats is hard to find.
#ImageProcessing #TypeScript #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
Image processing in pure JavaScript for Node.js and the browser, with zero native dependencies.
Fast and secure standalone server for resizing, processing, and converting images on the fly
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
Asynchronous image downloader with cache support as a UIImageView category
Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing