disintegration / imaging

Imaging is a simple image processing package for Go
MIT License
5.23k stars 435 forks source link

Rotate180 is not worked as expect #95

Closed messyidea closed 5 years ago

messyidea commented 5 years ago

rotate.zip

Hi, you can try to use this code, the image was rotate 90 when use Rotate180 function

disintegration commented 5 years ago

Hi,

Most probably, the image contains the EXIF orientation tag. Try opening it with the AutoOrientation option (https://godoc.org/github.com/disintegration/imaging#AutoOrientation), e.g.:

src, err := imaging.Open("test.jpg", imaging.AutoOrientation(true))
messyidea commented 5 years ago

It's okey now, thanks