FLUTTER ECOSYSTEM

alann-maulana/image_compression_flutter

Flutter 확장 기능으로 이미지(JPG, PNG, WEBP)를 압축하고 크기를 조정할 수 있습니다.

image_compression_flutter 프로젝트 이미지
Stars
21
Forks
51
최근 푸시(UTC)
2025. 6. 12.
프로젝트 상태
활성
Alann Maulana GitHub avatar
GITHUB User

Alann Maulana ↗

Tenaga Kanggo Indonesia, PTTangerang
언어DartC++CMakeRubyCSwiftHTMLKotlinMakefileObjective-C

사용 중인 의존성

의존성 목록 7 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Flutter Image Compression

Flutter image compression and resize for Mobile, Desktop and Web. Support format JPG, PNG, WEBP.

Combining use of packages :

Compressing Image

ImageFile input; // set the input image file
Configuration config = Configuration(
   outputType: ImageOutputType.webpThenJpg,
   // can only be true for Android and iOS while using ImageOutputType.jpg or ImageOutputType.pngÏ
   useJpgPngNativeCompressor: false,
   // set quality between 0-100
   quality: 40,
);

final param = ImageFileConfiguration(input: input, config: config);
final output = await compressor.compress(param);

print("Input size : ${input.sizeInBytes}");
print("Output size : ${output.sizeInBytes}");