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

Update docs and changelog with some pro features

This commit is contained in:
DarthSim 2020-07-10 20:05:45 +06:00
parent bc6ca1f72b
commit 47e7711bc5
3 changed files with 24 additions and 2 deletions

View File

@ -4,6 +4,7 @@
### Added
- `IMGPROXY_PROMETHEUS_NAMESPACE` config.
- [strip_metadata](https://docs.imgproxy.net/#/generating_the_url_advanced?id=strip-metadata) processing option.
- (pro) Configurable unsharpening. See [Unsharpening](https://docs.imgproxy.net/#/configuration?id=unsharpening) configs and [unsharpening](https://docs.imgproxy.net/#/generating_the_url_advanced?id=unsharpening-) processing option.
### Changed
- Better for libvips memory metrics for Prometheus.
@ -15,6 +16,9 @@
- Fix path parsing in some rare cases.
- Fix HEIC/HEIF header parsing bug.
### Deprecated
- (pro) `IMGPROXY_APPLY_UNSHARPEN_MASKING` config is deprecated, use `IMGPROXY_UNSHARPENING_MODE` instead.
## [2.13.1] - 2020-05-06
### Fixed
- Fix and optimize processing of animated images.
@ -132,7 +136,6 @@
- Fixed path parsing when no options is provided and image URL is Base64 encoded.
### Deprecated
- Using `IMGPROXY_GCS_KEY` without `IMGPROXY_USE_GCS` set to `true` is deprecated.
## [2.5.0] - 2019-09-19

View File

@ -155,6 +155,17 @@ imgproxy Pro can extract specific frames of videos to create thumbnails. The fea
Read more about watermarks in the [Watermark](watermark.md) guide.
## Unsharpening
imgproxy Pro can apply unshapening mask to your images.
* `IMGPROXY_UNSHARPENING_MODE`: <img class="pro-badge" src="assets/pro.svg" alt="pro" /> controls when unsharpenning mask should be applied. The following modes are supported:
* `auto`: _(default)_ apply unsharpening mask only when image is downscaled and `sharpen` option is not set.
* `none`: don't apply the unsharpening mask.
* `always`: always apply the unsharpening mask.
* `IMGPROXY_UNSHARPENING_WEIGHT`: a floating-point number that defines how neighbor pixels will affect the current pixel. Greater the value - sharper the image. Should be greater than zero. Default: `1`.
* `IMGPROXY_UNSHARPENING_DIVIDOR`: a floating-point number that defines the unsharpening strength. Lesser the value - sharper the image. Should be greater than zero. Default: `24`.
## Fallback image
You can set up a fallback image that will be used in case imgproxy can't fetch the requested one. Use one of the following variables:
@ -285,5 +296,4 @@ imgproxy can send logs to syslog, but this feature is disabled by default. To en
* `IMGPROXY_BASE_URL`: base URL prefix that will be added to every requested image URL. For example, if the base URL is `http://example.com/images` and `/path/to/image.png` is requested, imgproxy will download the source image from `http://example.com/images/path/to/image.png`. Default: blank.
* `IMGPROXY_USE_LINEAR_COLORSPACE`: when `true`, imgproxy will process images in linear colorspace. This will slow down processing. Note that images won't be fully processed in linear colorspace while shrink-on-load is enabled (see below).
* `IMGPROXY_DISABLE_SHRINK_ON_LOAD`: when `true`, disables shrink-on-load for JPEG and WebP. Allows to process the whole image in linear colorspace but dramatically slows down resizing and increases memory usage when working with large images.
* `IMGPROXY_APPLY_UNSHARPEN_MASKING`: <img class="pro-badge" src="assets/pro.svg" alt="pro" /> when `true`, imgproxy will apply unsharpen masking to the resulting image if one is smaller than the source. Default: `true`.
* `IMGPROXY_STRIP_METADATA`: whether to strip all metadata (EXIF, IPTC, etc.) from JPEG and WebP output images. Default: `true`.

View File

@ -327,6 +327,15 @@ When set, imgproxy will apply the pixelate filter to the resulting image. `size`
Default: disabled
#### Unsharpening <img class="pro-badge" src="assets/pro.svg" alt="pro" />
```
unsharpening:%mode:%weight:%dividor
ush:%mode:%weight:%dividor
```
Allows redefining unsharpening options. All arguments have the same meaning as [Unsharpening](configuration.md#unsharpening) configs. All arguments are optional and can be omitted.
#### Watermark
```