Mercurial > hg > digilib
comparison doc/src/site/markdown/scaler-api.md @ 1593:4ef25f916df8
cleanup and site doc.
author | robcast |
---|---|
date | Wed, 08 Feb 2017 20:24:42 +0100 |
parents | 71cd204862d4 |
children |
comparison
equal
deleted
inserted
replaced
1592:7031524fc6e9 | 1593:4ef25f916df8 |
---|---|
4 | 4 |
5 http://host.domain/digilib/Scaler/request_path/?param1=value1¶m2=value2&... | 5 http://host.domain/digilib/Scaler/request_path/?param1=value1¶m2=value2&... |
6 | 6 |
7 Unknown parameters will be silently ignored. | 7 Unknown parameters will be silently ignored. |
8 | 8 |
9 Recognised parameters (as of Version 2.3.7, for the most recent list of | 9 Recognised parameters (as of Version 2.5.0, for the most up to date information use the source for |
10 parameters | 10 [parameters](https://sourceforge.net/p/digilib/code/ci/default/tree/servlet/src/main/java/digilib/conf/DigilibServletRequest.java) |
11 [use the source](https://sourceforge.net/p/digilib/code/ci/default/tree/servlet/src/main/java/digilib/conf/DigilibServletRequest.java) | 11 and |
12 [mode options](https://sourceforge.net/p/digilib/code/ci/default/tree/common/src/main/java/digilib/conf/DigilibOption.java) | |
12 ): | 13 ): |
13 | 14 |
14 - `request_path`: (optional) path to file or directory. | 15 - `request_path`: (optional) path to file or directory. |
15 - `fn`: path to file or directory. (This path will be added to | 16 - `fn`: path to file or directory. (This path will be added to |
16 `request_path`. Either parameter can be empty. | 17 `request_path`. Either parameter can be empty. |
62 - `GRAYSCALE` (produces grayscale image) | 63 - `GRAYSCALE` (produces grayscale image) |
63 - `NTSC_GRAY` (uses NTSC formula to produce grayscale image) | 64 - `NTSC_GRAY` (uses NTSC formula to produce grayscale image) |
64 - `BITONAL` (produces black-and-white image) | 65 - `BITONAL` (produces black-and-white image) |
65 - `INVERT` (inverts colors) | 66 - `INVERT` (inverts colors) |
66 - `MAP_GRAY_BGR` (produces false-color image mapping brightness values to color scale from blue via green to red). | 67 - `MAP_GRAY_BGR` (produces false-color image mapping brightness values to color scale from blue via green to red). |
67 - `mo`: list of flags for the mode of operation separated by comma ",". | 68 - `mo`: list of options for the mode of operation separated by comma ",". |
68 - `fit`: scale the image proportionally to fit inside \[`dw` x `dh`\], preserving its aspect ratio (default). | 69 - `fit`: scale the (selected area of the) image proportionally to fit inside [dw x dh], preserving its aspect ratio (default). |
69 - `squeeze`: scale the image to fit \[`dw` x `dh`\], changing its aspect ratio. | 70 - `squeeze`: scale the (selected area of the) image to fill [dw x dh], changing its aspect ratio (since v2.3.3). |
71 - `crop`: scale the (selected area of the) image proportionally to fill [dw x dh] with the shorter side, cropping the longer side (since v2.5). | |
72 - `fill`: scale the (selected area of the) image proportionally to fill [dw x dh] with the longer side, filling out the image on the shorter side if possible (since v2.3.3). | |
70 - `clip`: send the file in the highest resolution, cropped | 73 - `clip`: send the file in the highest resolution, cropped |
71 to fit \[`dw` x `dh`\]. | 74 to fit \[`dw` x `dh`\]. |
72 - `osize`: scale to original size based on image | 75 - `osize`: scale to original size based on image |
73 resolution (from the image metadata) and display resolution | 76 resolution (from the image metadata) and display resolution |
74 (from parameter ddpi). Fails if either resolution is unknown. | 77 (from parameter ddpi). Fails if either resolution is unknown. |