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

pull/1895/head
Athurg Gooth 2 years ago committed by GitHub
parent 833fd23820
commit 0af14fc81a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save