v2.1.2flutter_luban
Dart の image をベースにした、Luban に似た画像圧縮パッケージ。このライブラリにはシステムプラットフォームの制限がありません。
101いいね 78530日間ダウンロード130Pub ポイント
AndroidiOSmacOSWindowsLinux
Dart用のLubanのような画像圧縮パッケージ
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
An image compress package like Luban for Dart, based on image.
If toRgb: true , it supports all readable image formats
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);
});
});
依存関係一覧 4 件
{"sdk":"flutter"}^4.9.2^0.3.5+5{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗