Skip to content

Commit

Permalink
fix(local): thumbnail rotated if exist orientation tag (close #4749)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 15, 2023
1 parent 5dd73d8 commit 9d1f122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/local/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9d1f122

Please sign in to comment.