Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_image_filter_module.xml @ 1246:5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 09 Jul 2014 18:35:08 +0400 |
parents | 95c3c3bbf1ce |
children | 6ebdef43330a |
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 |
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
3 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
4 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
5 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
6 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
7 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
9 |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
10 <module name="Модуль ngx_http_image_filter_module" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
11 link="/ru/docs/http/ngx_http_image_filter_module.html" |
589 | 12 lang="ru" |
873
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
13 rev="3"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 |
110
40eec261c2a6
Added proper support for anonymous sections, notably for the summary.
Ruslan Ermilov <ru@nginx.com>
parents:
102
diff
changeset
|
15 <section id="summary"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
16 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
17 <para> |
347
daae2b619815
Specify the module history information in a unified place.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
18 Модуль <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
|
19 для преобразования изображений в форматах JPEG, GIF и PNG. |
203 | 20 </para> |
21 | |
22 <para> | |
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 разрешить с помощью конфигурационного параметра |
271 | 25 <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
|
26 <note> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
27 Для сборки и работы этого модуля необходима библиотека |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 <link url="http://libgd.org">libgd</link>. |
966 | 29 Рекомендуется использовать самую последнюю версию библиотеки. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
30 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
31 </para> |
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 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
34 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
35 |
364 | 36 <section id="example" name="Пример конфигурации"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
37 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
38 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
39 <example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
40 location /img/ { |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
41 proxy_pass http://backend; |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
42 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
|
43 image_filter rotate 90; |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
44 error_page 415 = /empty; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
45 } |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
46 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
47 location = /empty { |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
48 empty_gif; |
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 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
51 </para> |
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 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
54 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
55 |
364 | 56 <section id="directives" name="Директивы"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
57 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
58 <directive name="image_filter"> |
364 | 59 <syntax><literal>off</literal></syntax> |
60 <syntax><literal>test</literal></syntax> | |
61 <syntax><literal>size</literal></syntax> | |
62 <syntax> | |
63 <literal>rotate</literal> | |
64 <literal>90</literal> | <literal>180</literal> | | |
65 <literal>270</literal></syntax> | |
66 <syntax> | |
67 <literal>resize</literal> | |
68 <value>ширина</value> | |
69 <value>высота</value></syntax> | |
70 <syntax> | |
71 <literal>crop</literal> | |
72 <value>ширина</value> | |
73 <value>высота</value></syntax> | |
683
6c14c73d74ee
Documented default value of the image_filter directive.
Vladimir Homutov <vl@nginx.com>
parents:
589
diff
changeset
|
74 <default>off</default> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
75 <context>location</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
76 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
77 <para> |
203 | 78 Задаёт тип преобразования изображения: |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
79 <list type="tag"> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
80 |
271 | 81 <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
|
82 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
83 отключает обработку данным модулем во вложенном location. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
84 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
85 |
271 | 86 <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
|
87 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
88 проверяет, что ответ действительно является изображением |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
89 в формате JPEG, GIF или PNG. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
90 В противном случае возвращается ошибка |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
91 <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
|
92 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
93 |
271 | 94 <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
|
95 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
96 выдаёт информацию об изображении в формате JSON, например: |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
97 <example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
98 { "img" : { "width": 100, "height": 100, "type": "gif" } } |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
99 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
100 В случае ошибки выдаётся |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
101 <example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
102 {} |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
103 </example> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
104 </tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
105 |
271 | 106 <tag-name><literal>rotate</literal> |
107 <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
|
108 </tag-name> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
109 <tag-desc> |
184
4840aa7bab2c
The "rotate" rotates counter-clockwise.
Ruslan Ermilov <ru@nginx.com>
parents:
183
diff
changeset
|
110 поворачивает изображение против часовой стрелки на указанное число градусов. |
271 | 111 В значении параметра допустимо использование переменных. |
191
a4e271eb8dd6
Documented that "rotate" can be combined with "resize/crop".
Ruslan Ermilov <ru@nginx.com>
parents:
184
diff
changeset
|
112 Можно использовать как отдельно, так и совместно с преобразованиями |
271 | 113 <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
|
114 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
115 |
271 | 116 <tag-name><literal>resize</literal> |
117 <value>ширина</value> | |
118 <value>высота</value> | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
119 </tag-name> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
120 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
121 пропорционально уменьшает изображение до указанных размеров. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
122 Если требуется уменьшить только по одному измерению, то в качестве второго |
271 | 123 можно указать “<literal>-</literal>”. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
124 В случае ошибки сервер возвращает код |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
125 <http-status code="415" text="Unsupported Media Type"/>. |
271 | 126 В значениях параметров допустимо использование переменных. |
127 При использовании совместно с <literal>rotate</literal>, | |
203 | 128 поворот изображения происходит <emphasis>после</emphasis> |
129 уменьшения размеров изображения. | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
130 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
131 |
271 | 132 <tag-name><literal>crop</literal> |
133 <value>ширина</value> | |
134 <value>высота</value> | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
135 </tag-name> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
136 <tag-desc> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
137 пропорционально уменьшает изображение до размера большей стороны |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
138 и обрезает лишние края по другой стороне. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
139 Если требуется уменьшить только по одному измерению, то в качестве второго |
271 | 140 можно указать “<literal>-</literal>”. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
141 В случае ошибки сервер возвращает код |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
142 <http-status code="415" text="Unsupported Media Type"/>. |
271 | 143 В значениях параметров допустимо использование переменных. |
144 При использовании совместно с <literal>rotate</literal>, | |
203 | 145 поворот изображения происходит <emphasis>до</emphasis> |
146 уменьшения размеров изображения. | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
147 </tag-desc> |
76
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 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
150 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
151 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
152 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
153 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
154 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
155 <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
|
156 <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
|
157 <default>1M</default> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
158 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
159 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
160 <context>location</context> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
161 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
162 <para> |
203 | 163 Задаёт максимальный размер буфера для чтения изображения. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
164 При превышении размера сервер вернёт ошибку |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
165 <http-status code="415" text="Unsupported Media Type"/>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
166 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
167 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
168 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
169 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
170 |
873
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
171 <directive name="image_filter_interlace"> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
172 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
173 <default>off</default> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
174 <context>http</context> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
175 <context>server</context> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
176 <context>location</context> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
177 <appeared-in>1.3.15</appeared-in> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
178 |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
179 <para> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
180 Если включено, то итоговые изображения будут с чересстрочностью. |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
181 В случае JPEG итоговые изображения будут в формате “progressive JPEG”. |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
182 </para> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
183 |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
184 </directive> |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
185 |
1e4f86ac3716
Documented the "image_filter_interlace" directive.
Homutov Vladimir <vl@nginx.com>
parents:
710
diff
changeset
|
186 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
187 <directive name="image_filter_jpeg_quality"> |
271 | 188 <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
|
189 <default>75</default> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
190 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
191 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
192 <context>location</context> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
193 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
194 <para> |
364 | 195 Задаёт желаемое <value>качество</value> преобразованного изображения |
196 в формате JPEG. | |
966 | 197 Допустимые значения находятся в диапазоне от 1 до 100. |
205 | 198 Меньшим значениям обычно соответствует худшее качество изображения |
199 и меньший объём передаваемых данных. | |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
200 Максимальное рекомендуемое значение — 95. |
271 | 201 В значении параметра допустимо использование переменных. |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
202 </para> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
203 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
204 </directive> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
205 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
206 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
207 <directive name="image_filter_sharpen"> |
271 | 208 <syntax><value>процент</value></syntax> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
209 <default>0</default> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
210 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
211 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
212 <context>location</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
213 |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
214 <para> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
215 Повышает резкость итогового изображения. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
216 Процент резкости может быть больше 100. |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
217 Значение 0 отключает повышение резкости. |
271 | 218 В значении параметра допустимо использование переменных. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
219 </para> |
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 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
222 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
223 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
224 <directive name="image_filter_transparency"> |
271 | 225 <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
|
226 <default>on</default> |
183
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
227 <context>http</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
228 <context>server</context> |
aa4c2b46a4a3
Revised ngx_http_image_filter_module documentation, unfinished.
Igor Sysoev <igor@sysoev.ru>
parents:
110
diff
changeset
|
229 <context>location</context> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
230 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
231 <para> |
203 | 232 Определяет, сохранять ли прозрачность при обработке изображений |
966 | 233 в формате GIF и в формате PNG с цветами, заданными палитрой. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
234 Потеря прозрачности позволяет получить более качественное изображение. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
235 Прозрачность альфа-канала в формате PNG сохраняется всегда. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
236 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
237 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
238 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
239 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
240 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
241 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
242 </module> |