lume library

Lume — high-performance image manipulation powered by Rust.

Two main interfaces:

  • LumeImage — basic operations (resize, crop, rotate, color, format).
  • LumeCanvas — advanced processing (edges, filters, morphology, drawing).
import 'package:lume/lume.dart';

// Basic
final img = LumeImage.fromFile(file)
  .resize(width: 800, height: 600)
  .grayscale();

// Advanced
final canvas = LumeCanvas(img)
  .canny(low: 50, high: 150)
  .dilate(radius: 2)
  .toLumeImage();

// Flutter integration
LumeImageWidget(image: img, fit: BoxFit.cover);

Classes

LumeCanvas
Advanced image processing powered by imageproc.
LumeColor
LumeContour
LumeImage
Immutable image wrapper with a fluent API for chaining operations.
LumeImageInfo
LumeImageProvider
An ImageProvider backed by a LumeImage.
LumeImageWidget
A convenience widget that renders a LumeImage directly.
LumePoint
RustLib
Main entrypoint of the Rust API