comparison xml/en/docs/http/ngx_http_image_filter_module.xml @ 270:945d7299c26c

Spaces are now preserved here, so removed all the hacks.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 22 Dec 2011 13:39:18 +0000
parents bfe3eff81d04
children 4c6d2c614d2c
comparison
equal deleted inserted replaced
269:2681cad309d2 270:945d7299c26c
52 52
53 <directive name="image_filter"> 53 <directive name="image_filter">
54 <syntax><parameter>off</parameter></syntax> 54 <syntax><parameter>off</parameter></syntax>
55 <syntax><parameter>test</parameter></syntax> 55 <syntax><parameter>test</parameter></syntax>
56 <syntax><parameter>size</parameter></syntax> 56 <syntax><parameter>size</parameter></syntax>
57 <syntax><parameter>rotate </parameter> 57 <syntax><parameter>rotate</parameter>
58 <value>90</value> | <value>180</value> | <value>270</value> 58 <value>90</value> | <value>180</value> | <value>270</value></syntax>
59 </syntax>
60 <syntax> 59 <syntax>
61 <parameter>resize </parameter> 60 <parameter>resize</parameter>
62 <argument>width height</argument> 61 <argument>width</argument>
63 </syntax> 62 <argument>height</argument></syntax>
64 <syntax> 63 <syntax>
65 <parameter>crop </parameter> 64 <parameter>crop</parameter>
66 <argument>width height</argument> 65 <argument>width</argument>
67 </syntax> 66 <argument>height</argument></syntax>
68 <default/> 67 <default/>
69 <context>location</context> 68 <context>location</context>
70 69
71 <para> 70 <para>
72 Sets the type of transformation to perform on images: 71 Sets the type of transformation to perform on images:
95 <example> 94 <example>
96 {} 95 {}
97 </example> 96 </example>
98 </tag-desc> 97 </tag-desc>
99 98
100 <tag-name><parameter>rotate </parameter> 99 <tag-name><parameter>rotate</parameter>
101 <value>90</value>|<value>180</value>|<value>270</value> 100 <value>90</value>|<value>180</value>|<value>270</value>
102 </tag-name> 101 </tag-name>
103 <tag-desc> 102 <tag-desc>
104 rotates images counter-clockwise by the specified number of degrees. 103 rotates images counter-clockwise by the specified number of degrees.
105 The argument value can contain variables. 104 The argument value can contain variables.
106 Can be used either alone, or along with the 105 Can be used either alone, or along with the
107 <parameter>resize</parameter> and <parameter>crop</parameter> transformations. 106 <parameter>resize</parameter> and <parameter>crop</parameter> transformations.
108 </tag-desc> 107 </tag-desc>
109 108
110 <tag-name><parameter>resize </parameter> 109 <tag-name><parameter>resize</parameter>
111 <argument>width height</argument> 110 <argument>width</argument>
111 <argument>height</argument>
112 </tag-name> 112 </tag-name>
113 <tag-desc> 113 <tag-desc>
114 proportionally reduces an image to the specified sizes. 114 proportionally reduces an image to the specified sizes.
115 To reduce by only one dimension, another dimension can be specified as 115 To reduce by only one dimension, another dimension can be specified as
116 “<code>-</code>”. 116 “<code>-</code>”.
119 Values of arguments can contain variables. 119 Values of arguments can contain variables.
120 When used along with the <parameter>rotate</parameter> parameter, 120 When used along with the <parameter>rotate</parameter> parameter,
121 the rotation happens <emphasis>after</emphasis> reduction. 121 the rotation happens <emphasis>after</emphasis> reduction.
122 </tag-desc> 122 </tag-desc>
123 123
124 <tag-name><parameter>crop </parameter> 124 <tag-name><parameter>crop</parameter>
125 <argument>width height</argument> 125 <argument>width</argument>
126 <argument>height</argument>
126 </tag-name> 127 </tag-name>
127 <tag-desc> 128 <tag-desc>
128 proportionally reduces an image to the size of the largest side 129 proportionally reduces an image to the size of the largest side
129 and crops extraneous edges by another side. 130 and crops extraneous edges by another side.
130 To reduce by only one dimension, another dimension can be specified as 131 To reduce by only one dimension, another dimension can be specified as