fix:图片缩略调整

This commit is contained in:
momo 2023-09-06 18:28:54 +08:00
parent 1586848565
commit 6367907e79

View File

@ -11,7 +11,7 @@ import (
"fusenapi/utils/file"
"fusenapi/utils/hash"
"image"
"image/jpeg"
"image/png"
"io"
"net/http"
@ -91,7 +91,7 @@ func (l *LogoResizeLogic) LogoResize(req *types.LogoResizeReq, userinfo *auth.Us
}
emptyBuff := bytes.NewBuffer(nil) //开辟一个新的空buff
jpeg.Encode(emptyBuff, src, nil) //img写入到buff
png.Encode(emptyBuff, src) //img写入到buff
var hashKeyDataMap = make(map[string]interface{})