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

100
likes
150
points
651
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

flutter, image

More

Packages that depend on flutter_luban