Skip to content

Introduction ​

imgkit is a high-performance image processing library for Bun and Node.js, built with Rust and napi-rs.

Why imgkit? ​

Performance ​

Built from the ground up for speed:

  • 950x faster metadata extraction for WebP images
  • 38x faster JPEG metadata parsing
  • 2.6x faster under concurrent load
  • Zero-copy buffer handling with Rust
  • Cross-platform - macOS, Linux, Windows (all architectures)

HEIC Support ​

The only high-performance image library with native HEIC/HEIF support:

  • Read iPhone photos directly
  • Convert HEIC to JPEG, PNG, WebP
  • Full metadata extraction
  • Shrink-on-decode optimization

Modern Architecture ​

  • Written in Rust for memory safety and performance
  • TypeScript-first with full type definitions
  • Both async and sync APIs
  • Cross-platform (macOS, Linux, Windows)

Comparison with sharp ​

Featureimgkitsharp
HEIC Support✅❌
Blurhash✅❌
Metadata Speed950x fasterbaseline
Concurrent Perf2.6x fasterbaseline
Transform Speed1.6x fasterbaseline
TypeScriptFirst-classTypes included

Supported Formats ​

FormatReadWrite
JPEG✅✅
PNG✅✅
WebP✅✅
HEIC/HEIF✅❌
AVIF✅❌
GIF✅✅
BMP✅✅
TIFF✅❌
ICO✅❌

Next Steps ​