1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Update changelog & docs

This commit is contained in:
DarthSim 2022-04-06 13:02:53 +06:00
parent f50ed8dc4a
commit ce73e0935c
2 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,7 @@
## [Unreleased] ## [Unreleased]
### Add ### Add
- Add `IMGPROXY_FALLBACK_IMAGE_TTL` config. - Add `IMGPROXY_FALLBACK_IMAGE_TTL` config.
- Add [watermark_size](https://docs.imgproxy.net/generating_the_url?id=watermark-size) processing option.
### Change ### Change
- (pro) Don't check `Content-Length` header of videos. - (pro) Don't check `Content-Length` header of videos.

View File

@ -465,6 +465,23 @@ If you want to use a custom font, you need to put it in `/usr/share/fonts` insid
Default: blank Default: blank
### Watermark Size<i class='badge badge-pro'></i> :id=watermark-size
```
watermark_size:%width:%height
wms:%width:%height
```
Defines the desired width and height of the watermark. imgproxy always uses `fit` resizing type when resizing watermarks and enlarges them when needed.
When `%width` is set to `0`, imgproxy will calculate the width using the defined height and watermark's aspect ratio.
When `%height` is set to `0`, imgproxy will calculate the height using the defined width and watermark's aspect ratio.
**📝Note:** This processing option takes effect only when the `scale` argument of the `watermark` option is set to zero.
Default: `0:0`
### Style<i class='badge badge-pro'></i> :id=style ### Style<i class='badge badge-pro'></i> :id=style
``` ```