Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_image_filter_module.xml @ 509:0e55c9a48da9
Trimmed space at EOL.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 24 Apr 2012 11:14:21 +0000 |
parents | bb51d3e17dd0 |
children | be54c443235a |
rev | line source |
---|---|
222
bfe3eff81d04
Removed redundant encoding specification.
Ruslan Ermilov <ru@nginx.com>
parents:
205
diff
changeset
|
1 <?xml version="1.0"?> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
2 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
4 |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
5 <module name="Модуль ngx_http_image_filter_module" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
6 link="/ru/docs/http/ngx_http_image_filter_module.html" |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
7 lang="ru"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
8 |
110
40eec261c2a6
Added proper support for anonymous sections, notably for the summary.
Ruslan Ermilov <ru@nginx.com>
parents:
102
diff
changeset
|
9 <section id="summary"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
10 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
11 <para> |
347
daae2b619815
Specify the module history information in a unified place.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
12 Модуль <literal>ngx_http_image_filter_module</literal> (0.7.54+) — это фильтр |
daae2b619815
Specify the module history information in a unified place.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
13 для преобразования изображений в форматах JPEG, GIF и PNG. |
203 | 14 </para> |
15 | |
16 <para> | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
17 По умолчанию этот модуль не собирается, его сборку необходимо |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
18 разрешить с помощью конфигурационного параметра |
271 | 19 <literal>--with-http_image_filter_module</literal>. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
20 <note> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
21 Для сборки и работы этого модуля необходима библиотека |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
22 <link url="http://libgd.org">libgd</link>. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
23 Рекомендуется использовать самую последнюю версию библиотеки, |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
24 на текущий момент это версия 2.0.35. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
25 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
26 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
27 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
29 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
30 |
364 | 31 <section id="example" name="Пример конфигурации"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
32 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
33 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
34 <example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
35 location /img/ { |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
36 proxy_pass http://backend; |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
37 image_filter resize 150 100; |
191
a4e271eb8dd6
Documented that "rotate" can be combined with "resize/crop".
Ruslan Ermilov <ru@nginx.com>
parents:
184
diff
changeset
|
38 image_filter rotate 90; |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
39 error_page 415 = /empty; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
40 } |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
41 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
42 location = /empty { |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
43 empty_gif; |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
44 } |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
45 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
46 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
47 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
48 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
49 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
50 |
364 | 51 <section id="directives" name="Директивы"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
52 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
53 <directive name="image_filter"> |
364 | 54 <syntax><literal>off</literal></syntax> |
55 <syntax><literal>test</literal></syntax> | |
56 <syntax><literal>size</literal></syntax> | |
57 <syntax> | |
58 <literal>rotate</literal> | |
59 <literal>90</literal> | <literal>180</literal> | | |
60 <literal>270</literal></syntax> | |
61 <syntax> | |
62 <literal>resize</literal> | |
63 <value>ширина</value> | |
64 <value>высота</value></syntax> | |
65 <syntax> | |
66 <literal>crop</literal> | |
67 <value>ширина</value> | |
68 <value>высота</value></syntax> | |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
76
diff
changeset
|
69 <default/> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
70 <context>location</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
71 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
72 <para> |
203 | 73 Задаёт тип преобразования изображения: |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
74 <list type="tag"> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
75 |
271 | 76 <tag-name><literal>off</literal></tag-name> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
77 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
78 отключает обработку данным модулем во вложенном location. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
79 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
80 |
271 | 81 <tag-name><literal>test</literal></tag-name> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
82 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
83 проверяет, что ответ действительно является изображением |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
84 в формате JPEG, GIF или PNG. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
85 В противном случае возвращается ошибка |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
86 <http-status code="415" text="Unsupported Media Type"/>. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
87 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
88 |
271 | 89 <tag-name><literal>size</literal></tag-name> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
90 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
91 выдаёт информацию об изображении в формате JSON, например: |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
92 <example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
93 { "img" : { "width": 100, "height": 100, "type": "gif" } } |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
94 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
95 В случае ошибки выдаётся |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
96 <example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
97 {} |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
98 </example> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
99 </tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
100 |
271 | 101 <tag-name><literal>rotate</literal> |
102 <literal>90</literal>|<literal>180</literal>|<literal>270</literal> | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
103 </tag-name> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
104 <tag-desc> |
184
4840aa7bab2c
The "rotate" rotates counter-clockwise.
Ruslan Ermilov <ru@nginx.com>
parents:
183
diff
changeset
|
105 поворачивает изображение против часовой стрелки на указанное число градусов. |
271 | 106 В значении параметра допустимо использование переменных. |
191
a4e271eb8dd6
Documented that "rotate" can be combined with "resize/crop".
Ruslan Ermilov <ru@nginx.com>
parents:
184
diff
changeset
|
107 Можно использовать как отдельно, так и совместно с преобразованиями |
271 | 108 <literal>resize</literal> и <literal>crop</literal>. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
109 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
110 |
271 | 111 <tag-name><literal>resize</literal> |
112 <value>ширина</value> | |
113 <value>высота</value> | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
114 </tag-name> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
115 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
116 пропорционально уменьшает изображение до указанных размеров. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
117 Если требуется уменьшить только по одному измерению, то в качестве второго |
271 | 118 можно указать “<literal>-</literal>”. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
119 В случае ошибки сервер возвращает код |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
120 <http-status code="415" text="Unsupported Media Type"/>. |
271 | 121 В значениях параметров допустимо использование переменных. |
122 При использовании совместно с <literal>rotate</literal>, | |
203 | 123 поворот изображения происходит <emphasis>после</emphasis> |
124 уменьшения размеров изображения. | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
125 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
126 |
271 | 127 <tag-name><literal>crop</literal> |
128 <value>ширина</value> | |
129 <value>высота</value> | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
130 </tag-name> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
131 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
132 пропорционально уменьшает изображение до размера большей стороны |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
133 и обрезает лишние края по другой стороне. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
134 Если требуется уменьшить только по одному измерению, то в качестве второго |
271 | 135 можно указать “<literal>-</literal>”. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
136 В случае ошибки сервер возвращает код |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
137 <http-status code="415" text="Unsupported Media Type"/>. |
271 | 138 В значениях параметров допустимо использование переменных. |
139 При использовании совместно с <literal>rotate</literal>, | |
203 | 140 поворот изображения происходит <emphasis>до</emphasis> |
141 уменьшения размеров изображения. | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
142 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
143 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
144 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
145 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
146 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
147 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
148 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
149 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
150 <directive name="image_filter_buffer"> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
151 <syntax><value>размер</value></syntax> |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
152 <default>1M</default> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
153 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
154 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
155 <context>location</context> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
156 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
157 <para> |
203 | 158 Задаёт максимальный размер буфера для чтения изображения. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
159 При превышении размера сервер вернёт ошибку |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
160 <http-status code="415" text="Unsupported Media Type"/>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
161 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
162 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
163 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
164 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
165 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
166 <directive name="image_filter_jpeg_quality"> |
271 | 167 <syntax><value>качество</value></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
168 <default>75</default> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
169 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
170 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
171 <context>location</context> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
172 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
173 <para> |
364 | 174 Задаёт желаемое <value>качество</value> преобразованного изображения |
175 в формате JPEG. | |
271 | 176 Допустимые значения находятся в диапазоне 1..100. |
205 | 177 Меньшим значениям обычно соответствует худшее качество изображения |
178 и меньший объём передаваемых данных. | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
179 Максимальное рекомендуемое значение — 95. |
271 | 180 В значении параметра допустимо использование переменных. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
181 </para> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
182 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
183 </directive> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
184 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
185 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
186 <directive name="image_filter_sharpen"> |
271 | 187 <syntax><value>процент</value></syntax> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
188 <default>0</default> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
189 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
190 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
191 <context>location</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
192 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
193 <para> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
194 Повышает резкость итогового изображения. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
195 Процент резкости может быть больше 100. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
196 Значение 0 отключает повышение резкости. |
271 | 197 В значении параметра допустимо использование переменных. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
198 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
199 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
200 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
201 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
202 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
203 <directive name="image_filter_transparency"> |
271 | 204 <syntax><literal>on</literal>|<literal>off</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
205 <default>on</default> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
206 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
207 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
208 <context>location</context> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
209 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
210 <para> |
203 | 211 Определяет, сохранять ли прозрачность при обработке изображений |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
212 в формате PNG с цветами, заданными палитрой, и в формате GIF. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
213 Потеря прозрачности позволяет получить более качественное изображение. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
214 Прозрачность альфа-канала в формате PNG сохраняется всегда. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
215 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
216 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
217 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
218 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
219 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
220 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
221 </module> |