Skip to content

Latest commit

 

History

History

wff-optimizer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Watch Face Format Optimizer

This tool applies the following optimizations, designed to reduce the runtime memory footprint of a WatchFace Format watch face:

  1. Crops and resizes BitmapFonts, adding margins to the Character tag to ensure alignment.

  2. Crops and resizes PartImage nodes, adjusting the pivot if needed.

  3. Attempts to quantize images to RGB565 where there will be no noticeable loss of fidelity.

  4. De-duplicates image resources after cropping, etc...

Building the tool

./gradlew :wff-optimizer:jar

Example usage

The following command will run the optimizations in place:

java -jar wff_optimizer.jar --source PATH/TO/UNZIPPED/APK

Add --verbose to observe what the tool is doing.