v2.1.2flutter_luban
An image compress package like Luban for Dart, based on image. This library has no system platform constraints.
101Likes 61030-day downloads130Pub points
AndroidiOSmacOSWindowsLinux
An image compress package like Luban for Dart
English project snapshot. Visit GitHub for the latest content.
An image compress package like Luban for Dart, based on image.
If toRgb: true , it supports all readable image formats
CompressObject compressObject = CompressObject(
imageXFile: imageXFile, //image file
path: tempDir.path, //compress to path, default Directory.systemTemp.path
useCache: true, //If there is a cache, no compression will be performed
toRgb: true, //Convert the image to jpg
numberOfColors: 128, //the numberOfColors of image.quantize
);
Luban.compressImage(compressObject).then((xfile) {
setState(() {
print(xfile.path);
});
});
Dependency list 4 items
{"sdk":"flutter"}^4.9.2^0.3.5+5{"sdk":"flutter"}Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗