alann-maulana/image_compression_flutter
एक फ्लटर एक्सटेंशन जो छवियों (JPG, PNG, WEBP) को संपीड़ित और आकार बदलने के लिए है।
- Stars
- 21
- Forks
- 51
- अंतिम पुश (UTC)
- 12 जून 2025
- प्रोजेक्ट स्थिति
- सक्रिय
भाषाएँ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}");