Mercurial > hg > digilib-old
comparison servlet/doc/Scaler.html @ 170:d40922628e4a
Servlet Version 1.16b2 with new DigilibParameter code.
- more generic class for request parameters
- like already done for DiglibConfig
- changes in JSPs for new request stuff
- changes in ImageSize class so size=0 is "wildcard"
- missing dw and dh parameters now treated as wildcards
- changed package name in imageinfo class
| author | robcast |
|---|---|
| date | Wed, 29 Oct 2003 22:47:15 +0100 |
| parents | 737f5cd647e1 |
| children | 3258490649b5 |
comparison
equal
deleted
inserted
replaced
| 169:93dd5e1c57d3 | 170:d40922628e4a |
|---|---|
| 25 | 25 |
| 26 <li><b>pn</b> page number. Index into the (alphabetically sorted) directory | 26 <li><b>pn</b> page number. Index into the (alphabetically sorted) directory |
| 27 given by the path. Starts with 1. Ignored if the path points to a file. | 27 given by the path. Starts with 1. Ignored if the path points to a file. |
| 28 Default: 1.</li> | 28 Default: 1.</li> |
| 29 | 29 |
| 30 <li><b>dw</b> destination image width (pixels).</li> | 30 <li><b>dw</b> destination image width (pixels). If omitted the image is scaled to fit |
| 31 dh.</li> | |
| 31 | 32 |
| 32 <li><b>dh</b> destination image height (pixels).</li> | 33 <li><b>dh</b> destination image height (pixels). If omitted the image is scaled to fit |
| 34 dw.</li> | |
| 33 | 35 |
| 34 <li><b>wx</b> relative x offset of the image area to be sent (0 <= wx <= 1). | 36 <li><b>wx</b> relative x offset of the image area to be sent (0 <= wx <= 1). |
| 35 Default: 0.</li> | 37 Default: 0.</li> |
| 36 | 38 |
| 37 <li><b>wy</b> relative y offset of the image area to be sent (0 <= wy <= 1). | 39 <li><b>wy</b> relative y offset of the image area to be sent (0 <= wy <= 1). |
| 48 | 50 |
| 49 <li><b>mo</b> flags for the mode of operation separated by ",". | 51 <li><b>mo</b> flags for the mode of operation separated by ",". |
| 50 <ul> | 52 <ul> |
| 51 <li><b>fit</b>: always scale the image to fit | 53 <li><b>fit</b>: always scale the image to fit |
| 52 <code>[dw,dh]</code>.<br> | 54 <code>[dw,dh]</code>.<br> |
| 55 | |
| 53 <b>file</b>: send the file as-is (may | 56 <b>file</b>: send the file as-is (may |
| 54 be very large and all sorts of image types!). If configuration | 57 be very large and all sorts of image types!). If configuration |
| 55 doesn't allow sending files | 58 doesn't allow sending files |
| 56 (<code>sendfile-allowed=false</code>) revert to | 59 (<code>sendfile-allowed=false</code>) revert to |
| 57 <code>clip</code>.<br> | 60 <code>clip</code>.<br> |
| 61 | |
| 58 <b>clip</b>: send the file in its | 62 <b>clip</b>: send the file in its |
| 59 original resolution, cropped to fit <code>[dw,dh]</code>.<br> If | 63 original resolution, cropped to fit <code>[dw,dh]</code>.<br> If |
| 60 none of these flags is set heuristics is used (send unzoomed GIF | 64 none of these flags is set heuristics is used (send unzoomed GIF |
| 61 as-is).<br> | 65 as-is).<br> |
| 66 | |
| 62 <b>osize</b>: scale to original size based on the image resolution | 67 <b>osize</b>: scale to original size based on the image resolution |
| 63 (from the image metadata) and display resolution (from parameter | 68 (from the image metadata) and display resolution (from parameter |
| 64 <code>ddpi</code>) | 69 <code>ddpi</code>). Fails if either resolution is unknown. |
| 65 </li> | 70 </li> |
| 66 | 71 |
| 67 <li><b>errtxt</b>: send error response as HTML.<br> | 72 <li><b>errtxt</b>: send error response as HTML.<br> |
| 68 <b>errimg</b>: response as image (default).</li> | 73 <b>errimg</b>: response as image (default).</li> |
| 69 | 74 |
| 70 <li><b>q0</b>-<b>q2</b>: quality of interpolation in scaling | 75 <li><b>q0</b>-<b>q2</b>: quality of interpolation in scaling |
| 71 (<code>q0</code>: worst, default).</li> | 76 (<code>q0</code>: worst, default).</li> |
| 72 | 77 |
| 73 <li><b>lores</b>: try to use scaled image (default)<br> | 78 <li><b>lores</b>: try to use scaled image (default)<br> |
| 79 | |
| 74 <b>hires</b>: always use unscaled image.<br> | 80 <b>hires</b>: always use unscaled image.<br> |
| 81 | |
| 75 If the image is zoomed (ww, wh < 1) the unscaled image is | 82 If the image is zoomed (ww, wh < 1) the unscaled image is |
| 76 used in any case.</li> | 83 used in any case.</li> |
| 77 | 84 |
| 78 <li><b>vmir</b>: mirror image vertically.<br> | 85 <li><b>vmir</b>: mirror image vertically.<br> |
| 86 | |
| 79 <b>hmir</b>: mirror image horizontally.</li> | 87 <b>hmir</b>: mirror image horizontally.</li> |
| 80 </ul> | 88 </ul> |
| 81 </li> | 89 </li> |
| 82 | 90 |
| 83 <li><b>cont</b>: change contrast of the image. Negative value | 91 <li><b>cont</b>: change contrast of the image. Negative value |
| 107 Either <code>ddpi</code> or <code>ddpix</code> and <code>ddpiy</code> must | 115 Either <code>ddpi</code> or <code>ddpix</code> and <code>ddpiy</code> must |
| 108 be set to use <code>osize</code> mode.</li> | 116 be set to use <code>osize</code> mode.</li> |
| 109 | 117 |
| 110 <li><b>ddpix</b>: resolution of client display in x direction for | 118 <li><b>ddpix</b>: resolution of client display in x direction for |
| 111 <code>osize</code> mode.</li> | 119 <code>osize</code> mode.</li> |
| 112 | |
| 113 | 120 |
| 114 <li><b>ddpiy</b>: resolution of client display in y direction for | 121 <li><b>ddpiy</b>: resolution of client display in y direction for |
| 115 <code>osize</code> mode.</li> | 122 <code>osize</code> mode.</li> |
| 116 | 123 |
| 117 </ul> | 124 </ul> |
