Skip to content

Latest commit

 

History

History
 
 

booster-task-compression-pngquant

booster-task-compression-pngquant

This module is used for assets and resource compression using pngquant

  • If pngquant has been installed, then use pngquant
  • otherwise, do not compress any resources

Properties

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*

Using pngquant

./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