mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust for external API changes
This commit is contained in:
parent
794b755f1d
commit
ca16cfa147
|
@ -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…
Reference in a new issue