Skip to content
pubscout

image

4.13.1, released 6 days ago by taosengine.com

Pure Dart library to load, manipulate, encode, and decode various image formats.

WASM-readyRock solid
$ flutter pub add image
Source repository

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.

Works with

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