custom_image_compression_flutter 1.0.7 copy "custom_image_compression_flutter: ^1.0.7" to clipboard
custom_image_compression_flutter: ^1.0.7 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}");
1
likes
140
points
197
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

cross_file, flutter, flutter_image_compress, flutter_web_plugins, image_compression

More

Packages that depend on custom_image_compression_flutter