From f6425c1789ce309bb541d02120568124a004f59e Mon Sep 17 00:00:00 2001 From: Laura Date: Thu, 19 Jun 2025 13:26:37 +0200 Subject: [PATCH] tiff and bmp are optional --- cmd/ffwebp/codecs.go | 2 -- cmd/ffwebp/codecs_bmp.go | 8 ++++++++ cmd/ffwebp/codecs_tiff.go | 8 ++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 cmd/ffwebp/codecs_bmp.go create mode 100644 cmd/ffwebp/codecs_tiff.go diff --git a/cmd/ffwebp/codecs.go b/cmd/ffwebp/codecs.go index 2eb08d2..351e254 100644 --- a/cmd/ffwebp/codecs.go +++ b/cmd/ffwebp/codecs.go @@ -1,9 +1,7 @@ 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" - _ "github.com/coalaura/ffwebp/internal/codec/tiff" ) diff --git a/cmd/ffwebp/codecs_bmp.go b/cmd/ffwebp/codecs_bmp.go new file mode 100644 index 0000000..e353b24 --- /dev/null +++ b/cmd/ffwebp/codecs_bmp.go @@ -0,0 +1,8 @@ +//go:build bmp +// +build bmp + +package main + +import ( + _ "github.com/coalaura/ffwebp/internal/codec/bmp" +) diff --git a/cmd/ffwebp/codecs_tiff.go b/cmd/ffwebp/codecs_tiff.go new file mode 100644 index 0000000..12809aa --- /dev/null +++ b/cmd/ffwebp/codecs_tiff.go @@ -0,0 +1,8 @@ +//go:build tiff +// +build tiff + +package main + +import ( + _ "github.com/coalaura/ffwebp/internal/codec/tiff" +)