flutter_bicubic_resize
1.9.1, released 5 weeks ago by codigee.com
Fast native image resize, crop, and compression for Flutter using FFI.
What it does
Decodes, resizes, crops, and encodes images via a native C pipeline using bicubic interpolation. It supports JPEG, PNG, raw buffers, and ML tensor preprocessing with automatic batching and EXIF orientation handling.
AI-written summary of version 1.9.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need high-performance image resizing, cropping, or compression that avoids heavy Dart processing.
- You are preparing image inputs for machine learning models (like TensorFlow Lite or PyTorch) with custom normalization and tensor layouts.
- You need to process batches of images in parallel across isolates with progress reporting.
Skip it when
- You need a UI widget that automatically loads and displays network images with caching.
- You require complex image manipulation features not covered by basic resizing, cropping, compression, and format conversion.
Strengths
- Native C performance via ffi provides fast execution times.
- Comprehensive ML preprocessing features including tensor normalization and presets for common models.
- Built-in batch processing with isolate concurrency control and progress tracking.
Weaknesses
- Limited to JPEG, PNG, and raw RGB/RGBA byte formats.
- Does not include higher-level UI widgets for rendering or interactive cropping.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Zero external Dart dependencies other than ffi; compiled native C code runs out of the box on supported platforms.
import 'package:flutter_bicubic_resize/flutter_bicubic_resize.dart';
final resized = BicubicResizer.resizeJpeg(
jpegBytes: originalBytes,
outputWidth: 224,
outputHeight: 224,
quality: 95,
);Alternatives
Packages that do the same job and could replace flutter_bicubic_resize.
- image
If you need a pure Dart image processing library with a broad array of image manipulation filters and encoders that doesn't rely on native FFI compilation.
96Compare - flutter_image_compress
If you specifically need optimized native compression for files on Android and iOS without advanced ML tensor conversions.
82Compare
Works with
Packages commonly used together with flutter_bicubic_resize: ones it builds on, ones built on it, and its own family.