comparison servlet/doc/Scaler.html @ 183:250f3b8762e4

updated Scaler docu
author robcast
date Tue, 25 Nov 2003 16:18:40 +0100
parents 31367c3c8202
children c9b2938861cf
comparison
equal deleted inserted replaced
182:31367c3c8202 183:250f3b8762e4
1 <HTML> 1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <HEAD> 2 <html>
3 <head>
3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> 4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
4 <TITLE>Scaler servlet</TITLE> 5 <TITLE>Scaler servlet</TITLE>
5 </HEAD> 6 </head>
6 <BODY> 7 <BODY>
7 <H1>Scaler</H1> 8 <H1>Scaler</H1>
8 9
9 <p>A Servlet for scaling images. (Version 1.16b2)</p> 10 <p>A Servlet for scaling images. (Version 1.16b2)</p>
10 11
12 13
13 <p>The Scaler servlet takes parameters in the http request format: 14 <p>The Scaler servlet takes parameters in the http request format:
14 <code>Scaler/request_path/?param1=value1&param2=value2&...</code> 15 <code>Scaler/request_path/?param1=value1&param2=value2&...</code>
15 Unknown parameters will be silently ignored.</p> 16 Unknown parameters will be silently ignored.</p>
16 17
17 <p>Recognised parameters: 18 <p>Recognised parameters:</p>
18 <ul> 19 <ul>
19 <li><b>request_path</b> path to file or directory.</li> 20 <li><b>request_path</b> path to file or directory.</li>
20 21
21 <li><b>fn</b> path to file or directory below <code>/docuserver/images</code> 22 <li><b>fn</b> path to file or directory below <code>/docuserver/images</code>
22 (or other configured image directory). 23 (or other configured image directory).
124 125
125 <li><b>ddpiy</b>: resolution of client display in y direction for 126 <li><b>ddpiy</b>: resolution of client display in y direction for
126 <code>osize</code> mode.</li> 127 <code>osize</code> mode.</li>
127 128
128 </ul> 129 </ul>
129 The image will be scaled equally in horizontal and vertical direction such that 130
130 the resulting image does not exceed the rectangle <code>[ww,wh]</code>. 131 <p>The image to be loaded can be specified by the
131 </p> 132 <code>request_path</code> (deprecated) or the <code>fn</code>
133 (preferred) parameter and the optional index <code>pn</code></p>
134 <ul>
135 <li> if <code>fn</code> points to a directory then the file with
136 the index <code>pn</code> (in alphabetical order according to
137 ASCII) will be loaded</li>
138
139 <li>if <code>fn</code> points to a file (with or without
140 extension) then this file will be loaded</li>
141 </ul>
142
143 <p>The image will be scaled equally in horizontal and vertical
144 direction such that the resulting image does not exceed the rectangle
145 <code>[dw,dh]</code>. If only either height or width is given the
146 image is scaled to match only the given parameter. The size of the
147 resulting image in the other parameter is determined by the aspect
148 ratio of the image.
149 </p>
132 150
133 </BODY> 151 </BODY>
134 </HTML> 152 </html>