mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-24 12:38:06 +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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(part) > 2 && strings.HasPrefix(part, "r=") {
|
if len(part) > 2 && strings.HasPrefix(part, "r") {
|
||||||
o.Rotate, _ = strconv.Atoi(part[2:])
|
o.Rotate, _ = strconv.Atoi(part[1:])
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ had not been specified.
|
||||||
|
|
||||||
#### Rotate ####
|
#### 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
|
counter-clockwise. Valid degrees values are `90`, `180`, and `270`. Images
|
||||||
are rotated **after** being resized.
|
are rotated **after** being resized.
|
||||||
|
|
||||||
|
|
@ -96,7 +96,7 @@ x100 | 100px tall, proportional width | 
|
100x150 | 100 by 150 pixels, cropping as needed | 
|
||||||
100 | 100px square, cropping as needed | 
|
100 | 100px square, cropping as needed | 
|
||||||
150,fit | scale to fit 150px square, no cropping | 
|
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 | 
|
100,fv,fh | 100px square, flipped horizontal and vertical | 
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue