feat:支持jfif图片,忽略后缀大小写

This commit is contained in:
2025-02-20 21:19:11 +08:00
parent 6993afaed1
commit 8ac42a958b
3 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ var supportImageTypes = []string{
".png",
".webp",
".psb",
".jfif",
}
// gif图片
@@ -79,7 +80,7 @@ var psdImageList []string
// 判断是否属于支持的图片文件
func isSupportImage(imageType string) bool {
for _, supportImageType := range supportImageTypes {
if strings.EqualFold(supportImageType, imageType) {
if strings.EqualFold(supportImageType, strings.ToLower(imageType)) {
return true
}
}