mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-09 11:25:14 +02:00
remove '=' from rotate option
This commit is contained in:
parent
ae66dd52b7
commit
a0d0260f5e
2 changed files with 4 additions and 4 deletions
|
|
@ -80,8 +80,8 @@ func ParseOptions(str string) *Options {
|
|||
continue
|
||||
}
|
||||
|
||||
if len(part) > 2 && strings.HasPrefix(part, "r=") {
|
||||
o.Rotate, _ = strconv.Atoi(part[2:])
|
||||
if len(part) > 2 && strings.HasPrefix(part, "r") {
|
||||
o.Rotate, _ = strconv.Atoi(part[1:])
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ had not been specified.
|
|||
|
||||
#### Rotate ####
|
||||
|
||||
The `r={degrees}` option will rotate the image the specified number of degrees,
|
||||
The `r{degrees}` option will rotate the image the specified number of degrees,
|
||||
counter-clockwise. Valid degrees values are `90`, `180`, and `270`. Images
|
||||
are rotated **after** being resized.
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ x100 | 100px tall, proportional width | 
|
||||
100 | 100px square, cropping as needed | 
|
||||
150,fit | scale to fit 150px square, no cropping | 
|
||||
100,r=90| 100px square, rotated 90 degrees | 
|
||||
100,r90 | 100px square, rotated 90 degrees | 
|
||||
100,fv,fh | 100px square, flipped horizontal and vertical | 
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue