flutter luban for dart
a image compress package like luban fordart.
example
compressobject compressobject = compressobject(
imagefile:imagefile, //image
path:tempdir.path, //compress to path
quality: 85,//first compress quality, default 80
step: 9,//compress quality step, the bigger the fast, smaller is more accurate, default 6
mode: compressmode.large2small,//default auto
);
luban.compressimage(compressobject).then((_path) {
setstate(() {
print(_path);
});
});
Comments are closed.