fix(rotate): max angle to 270

master
Tomas Aparicio 11 years ago
parent 489817eda6
commit 5a6ed699e8

@ -70,8 +70,8 @@ type Options struct {
Embed bool
Flip bool
Flop bool
Type ImageType
Rotate Angle
Gravity Gravity
Type ImageType
Interpolator Interpolator
}

@ -334,5 +334,5 @@ func getAngle(angle Angle) Angle {
if divisor != 0 {
angle = angle - divisor
}
return angle
return Angle(math.Min(float64(angle), 270))
}

Loading…
Cancel
Save