[#585] respect the EXIF orientation tag when generating thumbs
@see: https://github.com/disintegration/imaging#incorrect-image-orientation-after-processing-eg-an-image-appears-rotated-after-resizing
This commit is contained in:
@@ -272,7 +272,7 @@ func (s *System) CreateThumb(originalKey string, thumbKey, thumbSize string) err
|
|||||||
defer r.Close()
|
defer r.Close()
|
||||||
|
|
||||||
// create imaging object from the origial reader
|
// create imaging object from the origial reader
|
||||||
img, decodeErr := imaging.Decode(r)
|
img, decodeErr := imaging.Decode(r, imaging.AutoOrientation(true))
|
||||||
if decodeErr != nil {
|
if decodeErr != nil {
|
||||||
return decodeErr
|
return decodeErr
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user