mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
Proper handling of the EXIF cases.
Kudos to https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/ Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
833af3b49a
commit
b752fe8ea6
34 changed files with 62 additions and 2 deletions
|
|
@ -518,7 +518,7 @@ func calculateRotationAndFlip(image *C.VipsImage, angle Angle) (Angle, bool) {
|
|||
break // flip 1
|
||||
case 7:
|
||||
flip = true
|
||||
rotate = D90
|
||||
rotate = D270
|
||||
break // flip 6
|
||||
case 4:
|
||||
flip = true
|
||||
|
|
@ -526,7 +526,7 @@ func calculateRotationAndFlip(image *C.VipsImage, angle Angle) (Angle, bool) {
|
|||
break // flip 3
|
||||
case 5:
|
||||
flip = true
|
||||
rotate = D270
|
||||
rotate = D90
|
||||
break // flip 8
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue