ThumbnailServlet.java | Class | Thumbnail servlet.
Usage: /thumbnail/[options][/filename.extension]
Options are optional but must at least contain a way to identify the thumbnail to display.
There can be multiple options seperated by a "/".
Options may not contain spaces and values have to be properly URL encoded!
Valid options are:
pk{n.m} - id and version of the content, if no version is given the live version is used
xp{path} - URL encoded XPath of the property containing the image (optional, else default will be used)
lang{lang} - 2-digit ISO language code
lfb{0,1} - language fallback: 0=generate error if language not found, 1=fall back to default language
e{3 digit error number}u{error url} - URL encoded error url to redirect for http errors specified in {error number}, if no number is given then the url is a fallback for unclassified errors
s{0,1,2,3} - use a predefined image/thumbnail size
w{n} - scale to width
h{n} - scale to height
rot{90,180,270} - rotate 90, 180 or 270 degrees (rotate is always executed before flip operations)
flip{h,v} - flip horizontal or vertical (rotate is always executed before flip operations)
cropx{x}y{y}w{w}h{h} - crop a box from image defined by x,y,w(idth),h(eight), scaling applies to cropped image!
Sizes for the s parameters:
0 ... |