png_minifier 1.0.0 copy "png_minifier: ^1.0.0" to clipboard
png_minifier: ^1.0.0 copied to clipboard

Minify PNG images in pure Dart: many optimisation strategies compete and the smallest result that meets the quality target wins. Lossless by default, bounded-error palette quantisation on request; det [...]

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate png_minifier

Use it

The package has the following executables:

$ png_minifier

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add png_minifier

With Flutter:

 $ flutter pub add png_minifier

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

dependencies:
  png_minifier: ^1.0.0

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:png_minifier/png_minifier.dart';
1
likes
145
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Minify PNG images in pure Dart: many optimisation strategies compete and the smallest result that meets the quality target wins. Lossless by default, bounded-error palette quantisation on request; deterministic on the VM, JS and WebAssembly; with presets and a CLI.

Repository (GitHub)
View/report issues

Topics

#png #image #compression #optimization #quantization

License

Apache-2.0 (license)

Dependencies

archive, args

More

Packages that depend on png_minifier