czk 4 年之前
父節點
當前提交
d837b7068d
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      http/handle.go

+ 4 - 5
http/handle.go

@@ -3,7 +3,6 @@ package http
 import (
 	"bytes"
 	json2 "encoding/json"
-	"image"
 	"io/ioutil"
 	"net/http"
 	"strings"
@@ -66,10 +65,10 @@ func parseForm(req *http.Request, v interface{}) error {
 			if err != nil {
 				return err
 			}
-			if img, _, err := image.Decode(f); err == nil {
-				value[k1+"Height"] = img.Bounds().Max.Y
-				value[k1+"Wide"] = img.Bounds().Max.X
-			}
+			//if img, _, err := image.Decode(f); err == nil {
+			//	value[k1+"Height"] = img.Bounds().Max.Y
+			//	value[k1+"Wide"] = img.Bounds().Max.X
+			//}
 			value[k1] = buf.Bytes()
 			value[k1+"Filename"] = v1[0].Filename
 		}