mirror of
https://github.com/usememos/memos.git
synced 2025-02-26 14:25:24 +08:00
fix: invalid orientation of image thumbnail in Apple devices (#1891)
This commit is contained in:
parent
833fd23820
commit
0af14fc81a
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ func getOrGenerateThumbnailImage(srcBlob []byte, dstPath string) ([]byte, error)
|
|||
}()
|
||||
|
||||
reader := bytes.NewReader(srcBlob)
|
||||
src, err := imaging.Decode(reader)
|
||||
src, err := imaging.Decode(reader, imaging.AutoOrientation(true))
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to decode thumbnail image")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue