fix(local): thumbnail rotated if exist orientation tag (close #4749)

pull/4798/head
Andy Hsu 2023-07-15 14:31:03 +08:00
parent 5dd73d80d8
commit 9d1f122717
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (d *Local) getThumb(file model.Obj) (*bytes.Buffer, *string, error) {
srcBuf = imgBuf
}
image, err := imaging.Decode(srcBuf)
image, err := imaging.Decode(srcBuf, imaging.AutoOrientation(true))
if err != nil {
return nil, nil, err
}