native_image_compress 0.2.3 copy "native_image_compress: ^0.2.3" to clipboard
native_image_compress: ^0.2.3 copied to clipboard

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

0.2.3 #

  • ResizeOptions.maxWidth and maxHeight are now independently optional — constrain by width only, height only, or both.
  • Raise minimum SDK constraints: Dart ^3.13.0, Flutter >=3.47.0.

0.2.2 #

  • Check for AVIF hardware/software encoder support before attempting AVIF encoding; throws PlatformException(avifNotSupported) instead of failing partway through.
  • Validate quality range on the Android side too (invalidQuality), not just in Dart.
  • Add issue_tracker and topics to pubspec.yaml.
  • Expand README with an installation section, an AVIF support caveat, and a table of PlatformException error codes.

0.2.1 #

  • Rename Android plugin class to ImageCompress.
  • Speed up crop/resize on Android by decoding at the target sample size (BitmapRegionDecoder + inSampleSize) instead of decoding the full image first.
  • Extract HEIC/AVIF encoding into a separate HeifEncoder.

0.2.0 #

  • Migrate platform channel to Pigeon-generated messages
  • Add optional cropOptions and resizeOptions parameters.
  • Add compressImage as a lower-level entry point accepting an ImageFormat.

0.1.0 #

  • Initial release.
  • Compress images to JPEG, PNG, WebP, HEIC, and AVIF
  • Android implementation only (minSdk 28).
1
likes
0
points
439
downloads

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

unknown (license)

Dependencies

flutter, meta, plugin_platform_interface

More

Packages that depend on native_image_compress

Packages that implement native_image_compress