alann-maulana/image_compression_flutter
Flutter 확장 기능으로 이미지(JPG, PNG, WEBP)를 압축하고 크기를 조정할 수 있습니다.
- Stars
- 21
- Forks
- 51
- 최근 푸시(UTC)
- 2025. 6. 12.
- 프로젝트 상태
- 활성
언어DartC++CMakeRubyCSwiftHTMLKotlinMakefileObjective-C
사용 중인 의존성
의존성 목록 7 개
- flutter
{"sdk":"flutter"} - flutter_web_plugins
{"sdk":"flutter"} - cross_file
^0.3.3+4 - flutter_image_compress
^2.1.0 - image_compression
^1.0.5 - flutter_test개발 의존성
{"sdk":"flutter"} - flutter_lints개발 의존성
^3.0.1
원본 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 :
- image_compression :
MacOS,Windows,LinuxandWeb - flutter_image_compress :
AndroidandiOS
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}");