v2.1.2flutter_luban
Dart의 image를 기반으로 한 Luban과 유사한 이미지 압축 패키지입니다. 이 라이브러리는 시스템 플랫폼 제약이 없습니다.
101좋아요 57330일 다운로드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 ↗