comparison servlet/doc/Scaler.html @ 131:737f5cd647e1

Docu for osize.
author robcast
date Wed, 02 Jul 2003 00:12:22 +0200
parents 200584e60a0b
children d40922628e4a
comparison
equal deleted inserted replaced
130:c36944be0b58 131:737f5cd647e1
56 (<code>sendfile-allowed=false</code>) revert to 56 (<code>sendfile-allowed=false</code>) revert to
57 <code>clip</code>.<br> 57 <code>clip</code>.<br>
58 <b>clip</b>: send the file in its 58 <b>clip</b>: send the file in its
59 original resolution, cropped to fit <code>[dw,dh]</code>.<br> If 59 original resolution, cropped to fit <code>[dw,dh]</code>.<br> If
60 none of these flags is set heuristics is used (send unzoomed GIF 60 none of these flags is set heuristics is used (send unzoomed GIF
61 as-is).</li> 61 as-is).<br>
62 <b>osize</b>: scale to original size based on the image resolution
63 (from the image metadata) and display resolution (from parameter
64 <code>ddpi</code>)
65 </li>
62 66
63 <li><b>errtxt</b>: send error response as HTML.<br> 67 <li><b>errtxt</b>: send error response as HTML.<br>
64 <b>errimg</b>: response as image (default).</li> 68 <b>errimg</b>: response as image (default).</li>
65 69
66 <li><b>q0</b>-<b>q2</b>: quality of interpolation in scaling 70 <li><b>q0</b>-<b>q2</b>: quality of interpolation in scaling
97 green and blue components of the image can be reduced or enhanced 101 green and blue components of the image can be reduced or enhanced
98 similar to the <code>brgt</code> parameter. The factors for red, 102 similar to the <code>brgt</code> parameter. The factors for red,
99 green and blue are separated by slashes (for example 103 green and blue are separated by slashes (for example
100 100/0/25). Default: 0/0/0</li> 104 100/0/25). Default: 0/0/0</li>
101 105
106 <li><b>ddpi</b>: resolution of client display for <code>osize</code> mode.
107 Either <code>ddpi</code> or <code>ddpix</code> and <code>ddpiy</code> must
108 be set to use <code>osize</code> mode.</li>
109
110 <li><b>ddpix</b>: resolution of client display in x direction for
111 <code>osize</code> mode.</li>
112
113
114 <li><b>ddpiy</b>: resolution of client display in y direction for
115 <code>osize</code> mode.</li>
116
102 </ul> 117 </ul>
103 The image will be scaled equally in horizontal and vertical direction such that 118 The image will be scaled equally in horizontal and vertical direction such that
104 the resulting image does not exceed the rectangle <code>[ww,wh]</code>. 119 the resulting image does not exceed the rectangle <code>[ww,wh]</code>.
105 </p> 120 </p>
106 121