fast_image_editor library

Native image editing for Flutter with region-based effects.

This library provides high-performance native C image editing operations via Dart FFI. All processing runs in native code for maximum performance.

Features

  • 7 image filters: blur, sepia, saturation, brightness, contrast, sharpen, grayscale
  • Region-based effects (e.g., blur only top 30% of image)
  • High-quality bicubic image resizing (via flutter_bicubic_resize)
  • Sync and async (Isolate) variants for every operation
  • JPEG and PNG support with automatic format detection

Quick Start

import 'package:fast_image_editor/fast_image_editor.dart';

// Apply blur to entire image
final blurred = FastImageEditor.blur(bytes: imageBytes, radius: 15);

// Apply sepia only to top 30% and bottom 30%
final sepia = FastImageEditor.sepia(
  bytes: imageBytes,
  intensity: 0.8,
  region: EditRegion(top: 0.3, bottom: 0.3),
);

// Resize image with bicubic interpolation
final resized = FastImageEditor.resize(
  bytes: imageBytes,
  outputWidth: 800,
  outputHeight: 600,
);

Classes

EditRegion
Rectangular region of the image where an effect should be applied.
FastImageEditor
High-performance native image editor with region-based effects.
RadialRegion
Radial (circular) region of the image where an effect should be applied.

Enums

BicubicFilter
Available bicubic filter types
CropAnchor
Crop anchor positions
CropAspectRatio
Crop aspect ratio modes
EdgeMode
Edge handling modes for resize operations
ImageFormat
Supported image formats.
NativeEditError
Native error codes returned by the C layer.

Exceptions / Errors

NativeEditException
Exception thrown when a native image edit operation fails.
UnsupportedImageFormatException
Exception thrown when an unsupported image format is detected.