native_image_compress 0.3.2
native_image_compress: ^0.3.2 copied to clipboard
Compress images to JPEG, PNG, WebP, HEIC, or AVIF using the platform's native encoders.
0.3.2 #
- Rewrite Android crop/resize/encode as one render pass.
- Rewrite Darwin crop to operate in raw pixel space, cutting rotated-crop time up to 7x.
- Fix HEIC/AVIF encoders leaking a MediaCodec/MediaMuxer per call on Android.
0.3.1 #
- Android now applies EXIF orientation.
- Fix resizeOptions undersizing when only
maxWidth/maxHeightis set. - Fix HEIC/AVIF encoding leaking native resources on every call.
- Lower peak memory when resizing on Android.
0.3.0 #
- Add darwin support (iOS/macOS) for JPEG, PNG, and HEIC
0.2.4 #
CompressImageRequest.qualityis now required.
0.2.3 #
ResizeOptions.maxWidth/maxHeightare now independently optional.- Require Dart
^3.13.0, Flutter>=3.47.0.
0.2.2 #
- Check AVIF encoder support before encoding.
- Validate
qualityon Android too.
0.2.1 #
- Speed up crop/resize via sampled decoding (
inSampleSize). - Extract HEIC/AVIF encoding into
HeifEncoder.
0.2.0 #
- Migrate to Pigeon-generated messages.
- Add
cropOptions/resizeOptions.
0.1.0 #
- Initial release: JPEG, PNG, WebP, HEIC, AVIF.
- Android only (minSdk 28).