Dart BSD-3-Clause

flutter_luban

An image compress package like Luban for Dart

C

crazecoder

Dernière activité 24 sept. 2026
crazecoder/flutter_luban

217

étoiles

54

forks

0

issues ouvertes

compressiondartflutterimageluban

Ce README est souvent en anglais.

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

Projets similaires

Luban 2(鲁班 2) —— 高效简洁的 Android 图片压缩工具库,像素级还原微信朋友圈压缩策略。(An efficient and concise Android image compression library that closely replicates the compression strategy of WeChat Moments.)

Candroidimage-compressionluban
CCurzibn
13,8 k étoiles2,3 k

Compresses image with native plugin (ObjC/Kotlin) on Flutter. Works on Android, iOS, macOS, Web, OpenHarmony.

Dartcompressflutter
Ffluttercandies
690 étoiles285

An android image compression library.

Kotlinandroidandroid-librarycompress-images
Zzetbaitsu
7,2 k étoiles964