Skip to content

Commit

Permalink
Correct rotation when resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
waynezhang committed Dec 29, 2023
1 parent 73d913f commit 409f417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/images/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func ResizeImage(src string, to string, width int) error {
}

func ResizeData(path string, width int) (*bytes.Buffer, error) {
src, err := imaging.Open(path)
src, err := imaging.Open(path, imaging.AutoOrientation(true))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 409f417

Please sign in to comment.