浏览代码

Add real check for icoload_source

DarthSim 7 月之前
父节点
当前提交
08678c8d49
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vips/vips.go

+ 1 - 1
vips/vips.go

@@ -268,7 +268,7 @@ func SupportsLoad(it imagetype.Type) bool {
 	case imagetype.BMP:
 	case imagetype.BMP:
 		sup = hasOperation("bmpload_source")
 		sup = hasOperation("bmpload_source")
 	case imagetype.ICO:
 	case imagetype.ICO:
-		sup = true
+		sup = hasOperation("icoload_source")
 	case imagetype.SVG:
 	case imagetype.SVG:
 		sup = hasOperation("svgload_source")
 		sup = hasOperation("svgload_source")
 	case imagetype.HEIC, imagetype.AVIF:
 	case imagetype.HEIC, imagetype.AVIF: