1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-07-18 06:14:34 +00:00

load default codecs

This commit is contained in:
Laura
2025-06-19 13:09:08 +02:00
parent 21515fc2e2
commit 1a5e919a74
3 changed files with 21 additions and 8 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
bin bin
example.*
test.*

8
cmd/ffwebp/codecs.go Normal file
View File

@ -0,0 +1,8 @@
package main
import (
_ "github.com/coalaura/ffwebp/internal/codec/bmp"
_ "github.com/coalaura/ffwebp/internal/codec/gif"
_ "github.com/coalaura/ffwebp/internal/codec/jpeg"
_ "github.com/coalaura/ffwebp/internal/codec/png"
)

View File

@ -60,6 +60,9 @@ func main() {
Action: run, Action: run,
Writer: os.Stderr, Writer: os.Stderr,
ErrWriter: os.Stderr, ErrWriter: os.Stderr,
EnableShellCompletion: true,
UseShortOptionHandling: true,
Suggest: true,
} }
if err := app.Run(context.Background(), os.Args); err != nil { if err := app.Run(context.Background(), os.Args); err != nil {