flutter_luban 2.0.0 copy "flutter_luban: ^2.0.0" to clipboard
flutter_luban: ^2.0.0 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.This library has no system platform constraints.

If toJpg: true , it supports all readable image formats

Readable Format

Example #

   CompressObject compressObject = CompressObject(
         imageFile:imageFile, //image
         path:tempDir.path, //compress to path
         useCache: true, //If there is a cache, no compression will be performed
         toJpg: true, //Convert the image to jpg
       );
    Luban.compressImage(compressObject).then((_path) {
        setState(() {
          print(_path);
        });
    });

101
likes
0
points
923
downloads

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

unknown (license)

Dependencies

flutter, image

More

Packages that depend on flutter_luban