image_compression_flutter 1.0.4 copy "image_compression_flutter: ^1.0.4" to clipboard
image_compression_flutter: ^1.0.4 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}");
81
likes
150
pub points
97%
popularity

Publisher

verified publisheralan.my.id

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