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:
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,3 @@
|
||||
bin
|
||||
bin
|
||||
example.*
|
||||
test.*
|
8
cmd/ffwebp/codecs.go
Normal file
8
cmd/ffwebp/codecs.go
Normal 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"
|
||||
)
|
@ -53,13 +53,16 @@ func main() {
|
||||
})
|
||||
|
||||
app := &cli.Command{
|
||||
Name: "ffwebp",
|
||||
Usage: "Convert any image format into any other image format",
|
||||
Version: Version,
|
||||
Flags: flags,
|
||||
Action: run,
|
||||
Writer: os.Stderr,
|
||||
ErrWriter: os.Stderr,
|
||||
Name: "ffwebp",
|
||||
Usage: "Convert any image format into any other image format",
|
||||
Version: Version,
|
||||
Flags: flags,
|
||||
Action: run,
|
||||
Writer: os.Stderr,
|
||||
ErrWriter: os.Stderr,
|
||||
EnableShellCompletion: true,
|
||||
UseShortOptionHandling: true,
|
||||
Suggest: true,
|
||||
}
|
||||
|
||||
if err := app.Run(context.Background(), os.Args); err != nil {
|
||||
|
Reference in New Issue
Block a user