mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 01:58:00 +08:00
压缩头像
This commit is contained in:
@@ -132,8 +132,8 @@ func (c *SettingController) Upload() {
|
||||
logs.Error("ImageCopyFromFile => ",err)
|
||||
c.JsonResult(6001,"头像剪切失败")
|
||||
}
|
||||
|
||||
err = graphics.SaveImage(filePath,subImg)
|
||||
err = graphics.ImageResizeSaveFile(subImg,120,120,filePath)
|
||||
//err = graphics.SaveImage(filePath,subImg)
|
||||
|
||||
if err != nil {
|
||||
logs.Error("保存文件失败 => ",err.Error())
|
||||
|
Reference in New Issue
Block a user