Browse Source

adjust for external API changes

pull/15/head
Chris Lu 10 years ago
parent
commit
ca16cfa147
  1. 5
      go/images/orientation.go

5
go/images/orientation.go

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

Loading…
Cancel
Save