1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-07-17 22:04:35 +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

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

@ -53,13 +53,16 @@ func main() {
}) })
app := &cli.Command{ app := &cli.Command{
Name: "ffwebp", Name: "ffwebp",
Usage: "Convert any image format into any other image format", Usage: "Convert any image format into any other image format",
Version: Version, Version: Version,
Flags: flags, Flags: flags,
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 {