I rebuilt my old image processing library with Rust + WebAssembly

Published: (February 7, 2026 at 12:31 PM EST)
2 min read
Source: Dev.to

Source: Dev.to

dnyh2

Rebuilding an old browser image library with Rust + WebAssembly

I originally started this project as a small practice project for two things:

  • publishing a library
  • learning Rust + WebAssembly in a real workflow

I paused it for a while, and recently came back to improve it properly: img-toolkit.

It’s a browser image‑processing library with a Rust/WASM core and a JS/TS wrapper.

  • resize
  • format convert (jpg/png/webp)
  • brightness adjustment

GitHub:
Demo:
npm:

Why I restarted it

I wanted to turn it from a simple practice repo into something cleaner and actually usable.

Recent improvements

  • API cleanup with clearer function boundaries:
    • processImage
    • resize
    • convertFormat
    • adjustBrightness
  • Better WebP behavior across runtime environments
  • Cleaner user‑facing error behavior
  • Documentation and release process improvements

Quick comparison (same source image)

Size
Original747 KB
JS canvas output49.3 KB
Rust/WASM output41.3 KB

(Comparison images are in the README.)

It’s still a work in progress, but it’s now much more usable than before. If you try it, I’d really appreciate feedback on API design and real‑world use cases.

0 views
Back to Blog

Related posts

Read more »

React-quiz-app

React Quiz App 🧠 This project highlights hands‑on understanding of React fundamentals, component‑based architecture, and efficient state management. Live demo...

Hoot: Scheme on WebAssembly

Article URL: https://www.spritely.institute/hoot/ Comments URL: https://news.ycombinator.com/item?id=46923254 Points: 17 Comments: 0...