Search packages, repositories and app categories

GitHub repositoryalann-maulana/image_compression_flutter

image_compression_flutter

A Flutter extension to compress and resize the images (JPG, PNG, WEBP).

image_compression_flutter project cover
Stars
21
Forks
51
Last push (UTC)
Jun 12, 2025
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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}");
Alann Maulana GitHub avatar
GitHub author

Alann Maulana ↗

Tenaga Kanggo Indonesia, PTTangerang
LanguagesDartC++CMakeRubyCSwiftHTMLKotlinMakefileObjective-C

Dependencies used

Dependency list 7 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗