flutter_luban 2.1.1 copy "flutter_luban: ^2.1.1" to clipboard
flutter_luban: ^2.1.1 copied to clipboard

An image compress package like Luban for Dart, based on image. This library has no system platform constraints.

flutter_luban #

pub package

An image compress package like Luban for Dart, based on image.

If toRgb: true , it supports all readable image formats

Readable Format

Example #

   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);
        });
    });

100
likes
140
points
799
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

An image compress package like Luban for Dart, based on image. This library has no system platform constraints.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

cross_file, flutter, image

More

Packages that depend on flutter_luban