image
4.13.1, released 6 days ago by taosengine.com
Pure Dart library to load, manipulate, encode, and decode various image formats.
What it does
Provides a comprehensive set of pure Dart tools to decode, manipulate, encode, and draw onto images across multiple platforms without native dependencies. It supports numerous formats like JPEG, PNG, WebP, and GIF, offering capabilities such as resizing, filtering, cropping, and pixel access.
AI-written summary of version 4.12.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to process, resize, or encode images in pure Dart or on the server/web without native bindings.
- You want to perform image manipulation tasks like color adjustments, filters, or drawing shapes programmatically.
Skip it when
- You only need a basic widget to pick images from the device gallery or camera.
- You require complex vector graphic rendering like SVG display.
Strengths
- Written in pure Dart with no native dependencies, working across servers, command-line, web, and all Flutter platforms.
- Supports a wide array of read/write image formats including animated formats.
- Includes a Command API for running image processing operations inside a separate isolate.
Weaknesses
- Heavy image processing operations on large files can consume significant CPU and memory if not offloaded to isolates.
- Not a UI widget by itself for rendering images directly in a Flutter widget tree.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:image/image.dart' as img;
Future<void> main() async {
final image = img.Image(width: 256, height: 256);
for (final pixel in image) {
pixel
..r = pixel.x
..g = pixel.y;
}
final png = img.encodePng(image);
}Alternatives
Packages that do the same job and could replace image.
- image_picker
Pick images from the device gallery or camera using native UI elements.
94Compare - flutter_svg
Render SVG files directly as widgets in Flutter.
100Compare - extended_image
Advanced Flutter image widget featuring zooming, panning, cropping, and caching.
80Compare
Works with
Packages commonly used together with image: ones it builds on, ones built on it, and its own family.
- archiveimage depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- flutter_launcher_iconsBuilt on imageSimplifies the task of updating your Flutter app's launcher icon across platforms.
- pdfBuilt on imageA PDF generation library for Dart and Flutter using a widget-like layout system.
- flutter_native_splashBuilt on imageAutomatically generates native iOS, Android, and Web splash screens.
- printingBuilt on imagePlugin to generate and print PDFs on Android, iOS, macOS, Windows, Linux and web
- pdfrx_engineBuilt on imagePure Dart PDF rendering and manipulation API built on top of PDFium.
- media_kitBuilt on imageCross‑platform video and audio player for Flutter and Dart
- msixBuilt on imageCLI tool that creates MSIX installers from Flutter Windows build outputs.