FLUTTER ECOSYSTEM

alann-maulana/image_compression_flutter

Eine Flutter-Erweiterung zum Komprimieren und Größenändern von Bildern (JPG, PNG, WEBP).

Projektcover von image_compression_flutter
Stars
21
Forks
51
Letzter Push (UTC)
12.06.2025
Projektstatus
Aktiv
Alann Maulana GitHub avatar
GITHUB User

Alann Maulana ↗

Tenaga Kanggo Indonesia, PTTangerang
SprachenDartC++CMakeRubyCSwiftHTMLKotlinMakefileObjective-C

Verwendete Abhängigkeiten

Abhängigkeiten 7 Einträge

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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}");