# HG changeset patch
# User robcast
# Date 1099402318 -3600
# Node ID c9b2938861cf83101c56da6372bbc7ad0a9c76a4
# Parent 665f2f4559d0824fb1d964c20e0c83f1c5aec64e
updated doc
diff -r 665f2f4559d0 -r c9b2938861cf servlet/doc/Scaler.html
--- a/servlet/doc/Scaler.html Tue Nov 02 13:31:38 2004 +0100
+++ b/servlet/doc/Scaler.html Tue Nov 02 14:31:58 2004 +0100
@@ -1,18 +1,18 @@
-
-Scaler servlet
+
+Scaler servlet
-
-Scaler
+
+Scaler
-A Servlet for scaling images. (Version 1.16b2)
+A Servlet for scaling images. (Version 1.5.2)
Web API
The Scaler servlet takes parameters in the http request format:
-Scaler/request_path/?param1=value1¶m2=value2&...
+Scaler/request_path/?param1=value1¶m2=value2&...
Unknown parameters will be silently ignored.
Recognised parameters:
@@ -52,8 +52,18 @@
mo flags for the mode of operation separated by ",".
- fit: always scale the image to fit
-
[dw,dh]
.
+ [dw,dh]
(default).
+
+ clip: send the file in its
+ original resolution, cropped to fit [dw,dh]
.
+
+ osize: scale to original size based on the image resolution
+ (from the image metadata) and display resolution (from parameter
+ ddpi
). Fails if either resolution is unknown.
+
+
+ -
file: send the file as-is (may
be very large and all sorts of image types!). If configuration
doesn't allow sending files
@@ -62,16 +72,7 @@
rawfile: send the file as-is with a mime-type of
application/octet-stream
so it can be downloaded with
- the browser.
-
- clip: send the file in its
- original resolution, cropped to fit [dw,dh]
.
If
- none of these flags is set heuristics is used (send unzoomed GIF
- as-is).
-
- osize: scale to original size based on the image resolution
- (from the image metadata) and display resolution (from parameter
- ddpi
). Fails if either resolution is unknown.
+ the browser.
- errtxt: send error response as HTML.
@@ -84,12 +85,16 @@
hires: always use unscaled image.
- If the image is zoomed (ww, wh < 1) the unscaled image is
- used in any case.
+ If the image is zoomed (ww, wh < 1) the use of the scaled
+ image files depends on the requested resolution.
vmir: mirror image vertically.
hmir: mirror image horizontally.
+
+ jpg: the resulting image is always sent as JPEG
+ (otherwise TIFF and PNG images are sent as PNG).
+
@@ -148,5 +153,5 @@
ratio of the image.
-
+