image_compression_flutter
A Flutter extension to compress and resize the images (JPG, PNG, WEBP).
- 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 :
- 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}");
LanguagesDartC++CMakeRubyCSwiftHTMLKotlinMakefileObjective-C
Dependencies used
Dependency list 7 items
- 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_testDevelopment
{"sdk":"flutter"} - flutter_lintsDevelopment
^3.0.1
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- 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 ↗