mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-29 23:06:24 +02:00
add support for image rotation
This commit is contained in:
parent
ea76f2d0d8
commit
d506fc6881
3 changed files with 29 additions and 0 deletions
|
|
@ -59,6 +59,12 @@ always, the original aspect ratio will be preserved. Specifying the `fit`
|
|||
option with only one of either width or height does the same thing as if `fit`
|
||||
had not been specified.
|
||||
|
||||
#### Rotate ####
|
||||
|
||||
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.
|
||||
|
||||
### Remote URL ###
|
||||
|
||||
The URL of the original image to load is specified as the remainder of the
|
||||
|
|
@ -85,6 +91,7 @@ x100 | 100px tall, proportional width | 
|
||||
100 | 100px square, cropping as needed | 
|
||||
150,fit | fit to be no more than 150 by 150 pixels | 
|
||||
100,r=90| 100px square, rotated 90 degrees | 
|
||||
|
||||
|
||||
## License ##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue