Unverified Commit 0af14fc8 authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

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

parent 833fd238
......@@ -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")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment