Skip to content

Commit

Permalink
guess rotation for uploading images
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Dec 29, 2019
1 parent 7a11d2e commit b592d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func ResizeImage(file io.Reader, maxDimension int) (image.Image, error) {
img, err := imaging.Decode(file)
img, err := imaging.Decode(file, imaging.AutoOrientation(true))
if err != nil {
return img, err
}
Expand Down

0 comments on commit b592d19

Please sign in to comment.