{"repo":"fluttercandies/flutter_image_compress","free":true,"listed":false,"github":"https://github.com/fluttercandies/flutter_image_compress","clone":"git clone https://github.com/fluttercandies/flutter_image_compress.git","description":"Compresses image with native plugin (ObjC/Kotlin) on Flutter. Works on Android, iOS, macOS, Web, OpenHarmony.","language":"Dart","stars":690,"topics":["flutter","compress"],"license":"MIT","category":"mobile-apps","readme_excerpt":"flutter image compress A Flutter plugin that compresses images using native code (Kotlin on Android, Objective-C/Swift on Apple platforms). Supported platforms: Android, iOS, macOS, Web, OpenHarmony. Table of contents - Why native instead of Dart? - Platform features - Usage - Common parameters - minWidth and minHeight - rotate - autoCorrectionAngle - quality - format - WebP - HEIF / HEIC - inSampleSize - keepExif - Return values - Working with List and Uint8List - FAQ - Runtime errors - Android - Troubleshooting - EXIF metadata - Web - macOS - OpenHarmony Why native instead of Dart? Dart-only image libraries exist, but in practice they are too slow for typical compression workloads — even in release builds, and even when moved to an Isolate . Delegating to platform-native encoders is dramatically faster. Platform features Feature Android iOS Web macOS OpenHarmony :------------------------- :-----: :---: :---------------------: :---: :---------: compressWithList ✅ ✅ ✅ ✅ ✅ compressAssetImage ✅ ✅ ✅ ✅ ✅ compressWithFile ✅ ✅ ❌ ✅ ✅ compressAndGetFile ✅ ✅ ❌ ✅ ✅ Format: jpeg ✅ ✅ ✅ ✅ ✅ Format: png ✅ ✅ ✅ ✅ ✅ Format: webp ✅ ✅ [🌐][webp-compatibility] ❌ ✅ Format: heic ✅ ✅ ❌ ✅ ✅ Param: quality ✅ ✅ [🌐][webp-compatibility] ✅ ✅ Param: rotate ✅ ✅ ❌ ✅ ✅ Param: keepExif ✅ ✅ ❌ ✅ ❌ [webp-compatibility]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#browser compatibility \"Browser support\" Usage Add the latest version to your pubspec.yaml : Or run: Import it in your Da","default_branch":null,"files":null,"tree":[],"storefront":"/r/fluttercandies","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fluttercandies/flutter_image_compress/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}