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

various improvements

This commit is contained in:
Laura
2025-01-22 18:19:20 +01:00
parent 8c09ef1178
commit 04e61b791f
10 changed files with 266 additions and 109 deletions

View File

@ -27,6 +27,9 @@ var (
func TestFFWebP(t *testing.T) {
opts.Silent = true
opts.Format = "png"
encoder, _ := ResolveImageEncoder()
for _, file := range TestFiles {
log.Printf("Testing file: %s\n", file)
@ -47,7 +50,7 @@ func TestFFWebP(t *testing.T) {
var result bytes.Buffer
err = WriteImage(&result, img, "png")
err = encoder(&result, img)
if err != nil {
log.Fatalf("Failed to encode png image: %v", err)
}