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) }