1
0
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:
Aaron Schmied 2022-09-21 12:13:26 +02:00 committed by GitHub
parent 7006e1f5d7
commit a1ad5004f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}