# HG changeset patch # User Yaroslav Zhuravlev # Date 1477414353 -10800 # Node ID 6ebdef43330ae0be1712788b81c5ace7a6334cf5 # Parent 5b2bdd96b4e1ba29ac67936efa43159147fafa10 Added support for WebP to the image_filter module. diff -r 5b2bdd96b4e1 -r 6ebdef43330a xml/en/docs/http/ngx_http_image_filter_module.xml --- a/xml/en/docs/http/ngx_http_image_filter_module.xml Tue Oct 25 12:58:53 2016 +0000 +++ b/xml/en/docs/http/ngx_http_image_filter_module.xml Tue Oct 25 19:52:33 2016 +0300 @@ -10,13 +10,13 @@ + rev="4">
The ngx_http_image_filter_module module (0.7.54+) is a filter -that transforms images in JPEG, GIF, and PNG formats. +that transforms images in JPEG, GIF, PNG, and WebP formats. @@ -28,6 +28,11 @@ libgd library. It is recommended to use the latest available version of the library. + +The WebP format support appeared in version 1.11.6. +To transform images in this format, +the libgd library must be compiled with the WebP support. +
@@ -85,7 +90,7 @@ test -ensures that responses are images in either JPEG, GIF, or PNG format. +ensures that responses are images in either JPEG, GIF, PNG, or WebP format. Otherwise, the error is returned. @@ -233,6 +238,24 @@ + + +quality +80 +http +server +location +1.11.6 + + +Sets the desired quality of the transformed WebP images. +Acceptable values are in the range from 1 to 100. +Lesser values usually imply both lower image quality and less data to transfer. +Parameter value can contain variables. + + + +
diff -r 5b2bdd96b4e1 -r 6ebdef43330a xml/ru/docs/http/ngx_http_image_filter_module.xml --- a/xml/ru/docs/http/ngx_http_image_filter_module.xml Tue Oct 25 12:58:53 2016 +0000 +++ b/xml/ru/docs/http/ngx_http_image_filter_module.xml Tue Oct 25 19:52:33 2016 +0300 @@ -10,13 +10,13 @@ + rev="4">
Модуль ngx_http_image_filter_module (0.7.54+) — это фильтр -для преобразования изображений в форматах JPEG, GIF и PNG. +для преобразования изображений в форматах JPEG, GIF, PNG и WebP. @@ -28,6 +28,11 @@ libgd. Рекомендуется использовать самую последнюю версию библиотеки. + +Поддержка формата WebP появилась в версии 1.11.6. +Для преобразования изображений в данном формате +библиотека libgd должна быть собрана с поддержкой WebP. +
@@ -86,7 +91,7 @@ test проверяет, что ответ действительно является изображением -в формате JPEG, GIF или PNG. +в формате JPEG, GIF, PNG или WebP. В противном случае возвращается ошибка . @@ -237,6 +242,26 @@ + + +качество +80 +http +server +location +1.11.6 + + +Задаёт желаемое качество преобразованного изображения +в формате WebP. +Допустимые значения находятся в диапазоне от 1 до 100. +Меньшим значениям обычно соответствует худшее качество изображения +и меньший объём передаваемых данных. +В значении параметра допустимо использование переменных. + + + +