native_image_compress 0.3.2 copy "native_image_compress: ^0.3.2" to clipboard
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/maxHeight is 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.quality is now required.

0.2.3 #

  • ResizeOptions.maxWidth/maxHeight are now independently optional.
  • Require Dart ^3.13.0, Flutter >=3.47.0.

0.2.2 #

  • Check AVIF encoder support before encoding.
  • Validate quality on 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).
1
likes
160
points
439
downloads

Documentation

API reference

Publisher

verified publishernexosphere.xyz

Weekly Downloads

Compress images to JPEG, PNG, WebP, HEIC, or AVIF using the platform's native encoders.

Repository
View/report issues

Topics

#image #compress #webp #heic #avif

License

MIT (license)

Dependencies

flutter, meta, plugin_platform_interface

More

Packages that depend on native_image_compress

Packages that implement native_image_compress