fix:图片缩略调整
This commit is contained in:
parent
1586848565
commit
6367907e79
|
@ -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{})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user