google / google/watchface

wff-optimizer: Can/should tool be run recursively?

Open
#51 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
71
Forks
10
Avg merge
4h 14m
Merged PRs (30d)
1

Description

When run on the same directory, `wff-optimizer` seems to repeatedly resize the same image. Note how `wfs_spring_mindy` is resized twice:

```sh
$ java -jar wff-optimizer/build/libs/wff-optimizer.jar --verbose --source /var/folders/7t/qs57xpxs58j7z20c2g6fryj0006pwv/T/tmp.wLnXqfWWUN | grep spring_mindy
Cropping image wfs_spring_mindy: 400x560 -> 398x338
Scaling image wfs_spring_mindy: 398x338 -> 180x252
$ java -jar wff-optimizer/build/libs/wff-optimizer.jar --verbose --source /var/folders/7t/qs57xpxs58j7z20c2g6fryj0006pwv/T/tmp.wLnXqfWWUN | grep spring_mindy
Scaling image wfs_spring_mindy: 180x252 -> 180x153
$ java -jar wff-optimizer/build/libs/wff-optimizer.jar --verbose --source
```

Is this intentional? How do you know how many passes to apply?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.