|
@ -21,7 +21,10 @@ func FixJpgOrientation(data []byte) (oriented []byte) { |
|
|
} |
|
|
} |
|
|
angle := 0 |
|
|
angle := 0 |
|
|
flipMode := FlipDirection(0) |
|
|
flipMode := FlipDirection(0) |
|
|
orient := tag.Int(0) |
|
|
|
|
|
|
|
|
orient, err := tag.Int(0) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return data |
|
|
|
|
|
} |
|
|
switch orient { |
|
|
switch orient { |
|
|
case topLeftSide: |
|
|
case topLeftSide: |
|
|
// do nothing
|
|
|
// do nothing
|
|
|