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
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.
Works with
Packages commonly used together with pixer: ones it builds on, ones built on it, and its own family.
- cryptopixer depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- hookspixer depends on itDart API for the JSON-based protocol for package build and link hooks.
- code_assetspixer depends on itProvides the hook protocol specification for bundling native code with Dart packages.
- ffipixer depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- native_toolchain_rustpixer depends on itBuild and bundle Rust code into a Dart/Flutter project via build hooks.