# HG changeset patch
# User robcast
# Date 1052863875 -7200
# Node ID 200584e60a0bcbbabb9c3f2bcf286c68c1bca57d
# Parent ffc7d913839714fec708f2d3427e6318433c39ce
Updated with Version 1.9
diff -r ffc7d9138397 -r 200584e60a0b servlet/doc/Scaler.html
--- a/servlet/doc/Scaler.html Tue May 13 23:40:34 2003 +0200
+++ b/servlet/doc/Scaler.html Wed May 14 00:11:15 2003 +0200
@@ -6,7 +6,7 @@
Scaler
-A Servlet for scaling images. (Version 1.6b)
+A Servlet for scaling images. (Version 1.9b)
Web API
@@ -46,14 +46,16 @@
ws additional scaling factor. The resulting image will have the size
[ws*dw,ws*dh]
. Default: 1.
- mo flags for the mode of operation separated by "+".
+ mo flags for the mode of operation separated by ",".
- fit: always scale the image to fit
-
[dw,dh]
.
file: send the file as-is (may
+ [dw,dh]
.
+ file: send the file as-is (may
be very large and all sorts of image types!). If configuration
doesn't allow sending files
(sendfile-allowed=false
) revert to
- clip
.
clip: send the file in its
+ clip
.
+ 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).
@@ -79,10 +81,23 @@
multiplied by 2^cont. Default: 0
brgt: change brightness of image. Negative value reduces
- brightness, positive value enhances brightness. Pixel value is added
- brgt. Default: 0
+ brightness, positive value enhances brightness. The value brgt is
+ added to the pixel value. Default: 0
- rot: rotate image. Rotation angle is given in degrees. Default: 0
+ rot: rotate image. Rotation angle is given in
+ degrees. Default: 0
+
+ rgbm: modify color by multiplication. The contrast of the
+ red green and blue components of the image can be reduced or
+ enhanced similar to the cont
parameter. The factors for
+ red, green and blue are separated by slashes (for example
+ 0.86/0/-0.5). Default: 0/0/0
+
+ rgba: modify color by addition. The brightness of the red
+ green and blue components of the image can be reduced or enhanced
+ similar to the brgt
parameter. The factors for red,
+ green and blue are separated by slashes (for example
+ 100/0/25). Default: 0/0/0
The image will be scaled equally in horizontal and vertical direction such that