作者 yangfu

上传修改

@@ -115,7 +115,7 @@ func ResizeImage(fileType, sourcePath, prefix, subfix string, file *multipart.Fi @@ -115,7 +115,7 @@ func ResizeImage(fileType, sourcePath, prefix, subfix string, file *multipart.Fi
115 return 115 return
116 } 116 }
117 Rectangle := image.Bounds() 117 Rectangle := image.Bounds()
118 - image = imaging.Resize(image, Rectangle.Dx()/3, 0, imaging.Lanczos) 118 + image = imaging.Resize(image, Rectangle.Dx()/2, 0, imaging.Lanczos)
119 err = imaging.Save(image, filename) 119 err = imaging.Save(image, filename)
120 if err != nil { 120 if err != nil {
121 log.Error(err) 121 log.Error(err)