mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-04-16 13:48:36 +02:00
[#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:
parent
7006e1f5d7
commit
a1ad5004f8
@ -272,7 +272,7 @@ func (s *System) CreateThumb(originalKey string, thumbKey, thumbSize string) err
|
||||
defer r.Close()
|
||||
|
||||
// create imaging object from the origial reader
|
||||
img, decodeErr := imaging.Decode(r)
|
||||
img, decodeErr := imaging.Decode(r, imaging.AutoOrientation(true))
|
||||
if decodeErr != nil {
|
||||
return decodeErr
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user