All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Bun.Image: A zero-dependency native image processing pipeline for Bun runtime

By

chakintosh

8d ago· 5 min readenNews

Summary

Bun.Image is a chainable image processing pipeline built into the Bun runtime that can decode, resize, rotate, and re-encode multiple image formats (JPEG, PNG, WebP, HEIC, AVIF). It is built on libjpeg-turbo, spng, libwebp, and SIMD geometry kernels, with zero npm dependencies and no native addon build step. The API is modeled after Sharp, using a lazy evaluation pattern where transforms are chained and execution only happens when a terminal method is awaited.

Key quotes

· 3 pulled
Bun.Image is a chainable image pipeline for decoding, resizing, rotating, and re-encoding JPEG, PNG, WebP, HEIC, and AVIF — built on libjpeg-turbo, spng, libwebp, and SIMD geometry kernels, with zero npm dependencies and no native addon build step.
The API is shaped after Sharp: construct from an input, chain transforms, pick an output format, then await a terminal method.
Nothing runs until the terminal is awaited, and the work executes in native code.
Snippet from the RSS feed
Decode, transform, and encode images with a fast native pipeline

You might also wanna read