FLUTTER ECOSYSTEM

alann-maulana/image_compression_flutter

एक फ्लटर एक्सटेंशन जो छवियों (JPG, PNG, WEBP) को संपीड़ित और आकार बदलने के लिए है।

image_compression_flutter प्रोजेक्ट कवर
Stars
21
Forks
51
अंतिम पुश (UTC)
12 जून 2025
प्रोजेक्ट स्थिति
सक्रिय
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}");