image_compression_flutter 1.0.2
image_compression_flutter: ^1.0.2 copied to clipboard

Flutter image compression and resize for Mobile, Desktop and Web. Support format JPG, PNG, WEBP.

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}");
6
likes
130
pub points
77%
popularity

Publisher

cubeacon.com

Flutter image compression and resize for Mobile, Desktop and Web. Support format JPG, PNG, WEBP.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

cross_file, flutter, flutter_image_compress, flutter_web_plugins, image_compression

More

Packages that depend on image_compression_flutter