From 288cdc76fb08556d646d2a42deb7c36c457c6dd9 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Thu, 15 Nov 2018 18:58:35 +0600 Subject: [PATCH] Update docs --- docs/configuration.md | 2 +- docs/generating_the_url_advanced.md | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index f2de4816..4b9f1f85 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -75,7 +75,7 @@ When WebP support detection is enabled, please take care to configure your CDN o ## Client Hints support -imgproxy can use the `Width`, `Viewport-Width` or `DPR` HTTP header to determine the width of the image container using Client Hints when the width/dpr argument is ommited. +imgproxy can use the `Width`, `Viewport-Width` or `DPR` HTTP headers to determine default width and DPR options using Client Hints. This feature is disabled by default and can be enabled by the following option: * `IMGPROXY_ENABLE_CLIENT_HINTS`: enables Client Hints support when the width is ommited for automatic responsive images . Read [here](https://developers.google.com/web/updates/2015/09/automating-resource-selection-with-client-hints) details about Client Hints. diff --git a/docs/generating_the_url_advanced.md b/docs/generating_the_url_advanced.md index caf031dc..200a3d0f 100644 --- a/docs/generating_the_url_advanced.md +++ b/docs/generating_the_url_advanced.md @@ -86,6 +86,16 @@ Defines the height of the resulting image. When set to `0`, imgproxy will calcul Default: `0` +##### Dpr + +``` +dpr:%dpr +``` + +When set, imgproxy will multiply the image dimensions according to this factor for HiDPI (Retina) devices. The value must be greater than 0. + +Default: `1` + ##### Enlarge ``` @@ -158,16 +168,6 @@ When set, imgproxy will apply the gaussian blur filter to the resulting image. ` Default: disabled -##### Dpr - -``` -dpr:%dpr -``` - -When set, imgproxy will multiply the image dimensions according to this factor for HiDPI (Retina) devices. The value must be greater than 0. - -Default: `1` - ##### Sharpen ```