Immutable pipelines
Compose transformations synchronously, branch safely across tasks, and evaluate only at an output terminal.

Immutable pipelines
libvips powered
Native Swift integration
Image-based PDFs
Hokusai is a Swift package for high-performance server-side image processing. It accepts Data, file URL, raw pixel and streamed upload inputs, provides typed JPEG, PNG, WebP, AVIF, HEIF, TIFF, GIF, and PDF outputs, and keeps blocking native evaluation away from Swift’s cooperative executor. These pages document Hokusai 2.2.2, Hokusai Vapor 2.1.0 and Hokusai Hummingbird 2.1.0.
Start
Find an operation
Solve a task
Run the examples
let thumbnail = try await Hokusai(url: URL(fileURLWithPath: "photo.jpg")) .autoOrient() .resize(width: 400) .jpeg(quality: 85) .write(to: URL(fileURLWithPath: "thumbnail.jpg"))