Index: Improve file size/resolution checks, add WebP support #1017 #1226

Renames the config flag to from "megapixel-limit" to "resolution-limit".
Adds native support for the WebP image file format.
This commit is contained in:
Michael Mayer
2022-04-02 18:04:02 +02:00
parent 05a18bf6f2
commit a604e9a9c6
34 changed files with 833 additions and 485 deletions

View File

@@ -42,7 +42,7 @@ func configAction(ctx *cli.Context) error {
// Originals.
fmt.Printf("%-25s %s\n", "originals-path", conf.OriginalsPath())
fmt.Printf("%-25s %d\n", "originals-limit", conf.OriginalsLimit())
fmt.Printf("%-25s %d\n", "megapixel-limit", conf.MegapixelLimit())
fmt.Printf("%-25s %d\n", "resolution-limit", conf.ResolutionLimit())
// Other paths.
fmt.Printf("%-25s %s\n", "storage-path", conf.StoragePath())