fix: invalid orientation of image thumbnail in Apple devices (#1891)

This commit is contained in:
Athurg Gooth
2023-07-04 09:05:56 +08:00
committed by GitHub
parent 833fd23820
commit 0af14fc81a

View File

@@ -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")
}