Add extend_aspect_ratio processing option

This commit is contained in:
DarthSim
2023-02-19 18:58:30 +03:00
parent 4ca72ea9cc
commit 4bf1a27abd
6 changed files with 86 additions and 27 deletions

View File

@@ -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
```