This module is used for assets and resource compression using pngquant
- If
pngquant
has been installed, then usepngquant
- otherwise, do not compress any resources
The following table shows the properties that transformer supports:
Property | Description | Example |
---|---|---|
booster.task.compression.pngquant.option.quality |
compression quality (this default is 80) | |
booster.task.compression.pngquant.option.speed |
compression speed (the default is 3) | |
booster.task.compression.pngquant.ignores |
ignore wildcards (separated by comma) | mipmap/ic_launcher*,drawable/ic_launcher* |
./gradlew assembleDebug \
-Pbooster.task.compression.pngquant.option.quality=75 \
-Pbooster.task.compression.pngquant.option.speed=1
or configured in the gradle.properties
:
booster.task.compression.pngquant.option.quality=75
booster.task.compression.pngquant.option.speed=1