fast_image_compress
0.0.3, released 2 years ago by simform.com
Compress images quickly in Flutter with batch and parallel processing support.
What it does
A Flutter plugin that enables fast and easy image compression for JPEG, PNG, and HEIC formats on iOS and Android. It supports batch processing, parallel execution, resizing via target width, and preserving EXIF orientation.
AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to compress single or multiple images efficiently before uploading or storing them.
- You require parallel or batch image processing to keep UI smooth.
- You work with JPEG, PNG, or HEIC formats on Android and iOS.
Skip it when
- You need support for platforms other than Android and iOS (e.g., Web, Desktop).
- You require advanced image editing features like cropping or filters.
Strengths
- Supports parallel and batch image processing.
- Maintains image EXIF orientation during compression.
- Supports HEIC formats on supported Android and iOS versions.
Weaknesses
- Limited platform support (only Android and iOS).
- HEIC format support is restricted to iOS 11+ and Android API 28+ with hardware encoder support.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Android may require updating Kotlin to version 1.5.20 or higher.
Future<Uint8List> compressImage(Uint8List imageData) async {
final compressedImage = await fastImageCompress.compressImage(
imageData: imageData,
quality: 60,
targetWidth: 400,
imageQuality: ImageQuality.low,
);
return compressedImage;
}Alternatives
Packages that do the same job and could replace fast_image_compress.
Works with
Packages commonly used together with fast_image_compress: ones it builds on, ones built on it, and its own family.