From 26ace879731878fa66d79d24dc1b9eb846d2a47f Mon Sep 17 00:00:00 2001 From: script kiddie Date: Wed, 11 Dec 2024 14:53:11 +0100 Subject: [PATCH] fix switch error --- global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.go b/global.go index 7644677..a31f209 100644 --- a/global.go +++ b/global.go @@ -33,7 +33,7 @@ func Decodeimage(path string) (image.Image, error) { return jpeg.Decode(file) case ".jpeg": return jpeg.Decode(file) - case "png": + case ".png": return png.Decode(file) }