Skip to content
pubscout

pixer

0.0.13, released 5 weeks ago by lazebny.io

High-performance Dart image manipulation backed by Rust FFI for resizing, cropping, and encoding.

WASM-ready
$ flutter pub add pixer
Source repository

What it does

Provides cross-platform image manipulation like resizing, cropping, rotating, and filtering by running operations through a Rust FFI backend. Uses lazy pipelines to execute multiple operations in a single native call.

AI-written summary of version 0.0.13, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need high-performance image resizing, cropping, or encoding in Dart or Flutter
  • You want to process images using lazy, chainable pipelines
  • You need support for multiple platforms including mobile, desktop, and web via WebAssembly

Skip it when

  • You want pure Dart implementations without native binaries or Rust toolchain dependencies
  • You only need high-level UI image loading and caching from network URLs

Strengths

  • Extremely fast image processing powered by Rust and SIMD
  • Lazy pipelines run all operations in a single native call
  • Cross-platform support across mobile, desktop, and web

Weaknesses

  • Requires managing native binaries or setting up a Rust toolchain for custom formats
  • Manual memory disposal is required for loaded native image handles

Setup

Kind
FFI (native library)
Effort
Low
Code generation
No
Direct dependencies
5

Native binaries are downloaded automatically via Dart build hooks. WebAssembly builds require placing pixer.wasm in the web root.

import 'package:pixer/pixer.dart';

final image = Pixer.fromFile('input.jpg');
image.resize(800, 600).grayscale().saveToFile('output.png');
image.dispose();

Alternatives

Packages that do the same job and could replace pixer.

  • image

    Pure Dart alternative for decoding, manipulating, and encoding images without relying on native FFI or Rust binaries.

Works with

Packages commonly used together with pixer: ones it builds on, ones built on it, and its own family.