fc_native_image_resize
2.0.1, released 10 days ago by flutter-cavalry.com
A Flutter plugin to resize images via native APIs.
What it does
A Flutter plugin that resizes images using native APIs and saves the result to a file or returns encoded image bytes. It supports JPEG, PNG, and platform-specific formats like HEIF/AVIF with aspect ratio preservation and automatic orientation correction.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to resize local image files before uploading or storing them.
- You want high-performance image resizing using native platform APIs on Android, iOS, macOS, and Windows.
Skip it when
- You need to load and cache remote network images directly in the UI.
- You are targeting Android versions older than API 28 (Android 9).
Strengths
- Uses native platform APIs for performance and format support.
- Supports returning encoded bytes directly or saving to a file.
- Handles automatic EXIF orientation correction and aspect ratio calculations.
Weaknesses
- Requires Android API 28 or later.
- Windows support is strictly limited to Windows 11.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires Android API 28 (Android 9) or later and targets Windows 11 for Windows support.
import 'package:fc_native_image_resize/fc_native_image_resize.dart';
final plugin = FcNativeImageResize();
await plugin.resizeFile(
srcFile: srcFile,
destFile: destFile,
width: 300,
height: 300,
keepAspectRatio: true,
format: 'jpeg',
quality: 90,
);Alternatives
Packages that do the same job and could replace fc_native_image_resize.
- image
Provides a pure Dart image processing library that does not depend on native platform APIs.
96Compare - image_picker
If you primarily need to pick images from the device gallery or camera rather than processing existing files.
94Compare
Works with
Packages commonly used together with fc_native_image_resize: ones it builds on, ones built on it, and its own family.