RepositoryTypeScript
imagescript

imagescript/ImageScript

Pure TypeScript image processing that runs everywhere

687stars
35forks
0issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: jpeg

#1 Repository of the week

2
TINIX TRENDING·Topic: png

#2 Repository of the week

2
TINIX TRENDING·Topic: image-manipulation

#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.

RepositoryTypeScript
jimp-dev/jimp

Image processing in pure JavaScript for Node.js and the browser, with zero native dependencies.

14.7k
Nov 30, 2026
RepositoryGo
imgproxy/imgproxy

Fast and secure standalone server for resizing, processing, and converting images on the fly

11.2k
Nov 30, 2026
RepositoryPython
thumbor/thumbor

thumbor is an open-source photo thumbnail service by globo.com

10.5k
Nov 30, 2026
RepositoryJavaScript
lovell/sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.

32.9k
Nov 30, 2026
RepositoryObjective-C
SDWebImage/SDWebImage

Asynchronous image downloader with cache support as a UIImageView category

25.6k
Apr 15, 2026
RepositoryC#
SixLabors/ImageSharp

A modern, cross-platform, 2D Graphics library for .NET

8.1k
Dec 1, 2026
RepositoryGo
h2non/imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing

6.1k
Nov 8, 2025
RepositoryGo
cshum/imagor

Fast, secure image processing server and Go library, using libvips

4.1k
Nov 21, 2026
RepositoryPHP
spatie/image-optimizer

Easily optimize images using PHP

2.9k
Nov 5, 2026