browser_image_compression 1.0.1 copy "browser_image_compression: ^1.0.1" to clipboard
browser_image_compression: ^1.0.1 copied to clipboard

This plugin wraps a JavaScript library used for image compression and is specifically designed for use in Flutter Web. The image compression process runs on a web worker concurrently with Flutter's UI [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add browser_image_compression

With Flutter:

 $ flutter pub add browser_image_compression

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  browser_image_compression: ^1.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:browser_image_compression/browser_image_compression.dart';
5
likes
0
pub points
71%
popularity

Publisher

verified publisherchampionsgoal.com

This plugin wraps a JavaScript library used for image compression and is specifically designed for use in Flutter Web. The image compression process runs on a web worker concurrently with Flutter's UI main thread, ensuring smooth performance. You can set the final size of the compressed image to any desired value. However, please note that when a high compression rate is set, the library may take longer to process the image.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cross_file, flutter, flutter_web_plugins, js, plugin_platform_interface

More

Packages that depend on browser_image_compression