png_helper 1.0.2 copy "png_helper: ^1.0.2" to clipboard
png_helper: ^1.0.2 copied to clipboard

A png compress tool for flutter.

Image compression tool for flutter

Usage #

Install and activate #

Install from pub

flutter pub global activate png_helper

Config #

Create a png_helper.yaml in your project root directory, and write your configuration in it.

png_helper:
  # Compress quality
  # 0 default/auto
  # 1-10 customize
  quality: 0

  # Image path to compress
  # Relative path to project root(actually this configuration file).
  # Directory must end with '/'.
  # Support any path outside the project root, for example: 
  # ../my_android_project/app/src/main/res/drawable/
  # ../my_ios_project/Runner/Assets.xcassets/
  path:
    - asset/image/abc.png
    - asset/image/
    - path_relative_to_this_yaml_file/

  # Image path to ignore
  # Relative path to project root(actually this configuration file).
  # Directory must end with '/'.
  ignore:
    - '.9.png'
    - path_relative_to_this_yaml_file/

for more details, see PngHelperConfig

Run in project #

Go to your project root directory(where you create png_helper.yaml), and run:

flutter pub global run png_helper

Thanks #

In this project, powerfully tools below are used to compress images:

2
likes
115
pub points
0%
popularity

Publisher

verified publishersevenid.cn

A png compress tool for flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

path, yaml

More

Packages that depend on png_helper