mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 19:05:54 -07:00
fix(rotate): max angle to 270
This commit is contained in:
parent
489817eda6
commit
5a6ed699e8
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue