mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Add extend_aspect_ratio processing option
This commit is contained in:
@@ -174,6 +174,19 @@ ex:%extend:%gravity
|
||||
|
||||
Default: `false:ce:0:0`
|
||||
|
||||
### Extend aspect ratio
|
||||
|
||||
```
|
||||
extend_aspect_ratio:%extend:%gravity
|
||||
extend_ar:%extend:%gravity
|
||||
exar:%extend:%gravity
|
||||
```
|
||||
|
||||
* When `extend` is set to `1`, `t` or `true`, imgproxy will extend the image to the requested aspect ratio.
|
||||
* `gravity` _(optional)_ accepts the same values as the [gravity](#gravity) option, except `sm`. When `gravity` is not set, imgproxy will use `ce` gravity without offsets.
|
||||
|
||||
Default: `false:ce:0:0`
|
||||
|
||||
### Gravity
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user