diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-09-20 22:10:58 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-09-20 22:10:58 -0700 |
| commit | ca16cfa14715b80a6a41e8bf047eea41fabe7818 (patch) | |
| tree | f1e48a51f5f9b75747c23c8f7fd2306088390fd8 | |
| parent | 794b755f1d6b26e044627135d91f0d49388a36d5 (diff) | |
| download | seaweedfs-ca16cfa14715b80a6a41e8bf047eea41fabe7818.tar.xz seaweedfs-ca16cfa14715b80a6a41e8bf047eea41fabe7818.zip | |
adjust for external API changes
| -rw-r--r-- | go/images/orientation.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/go/images/orientation.go b/go/images/orientation.go index a7c126fc1..41ed3f0af 100644 --- a/go/images/orientation.go +++ b/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 |
