JMAGE has a concept of RequestMappers that translate client requests for images into internal ImageRequest objects. The image servlet is the most common of these RequestMappers. It handles all the requests from the taglibs but you can also invoke it directly if you want embedded, or finer grained control. This document will explain the different servlet parameters and their values.
http://localhost:8080/jmage-samplewebapp/jmage/?image=images/someimage.jpg
&chain=org.jmage.filterchain.frame.InstantPhoto
&TEXT=sometitle
&encode=png
Parameter | Description | Required | Allowed Values | Default |
---|---|---|---|---|
image | This value can be any URI that uniquely qualifies an image. | Yes | URI | n/a |
chain | Fully qualified name for a FilterChain or a single filter. If omitted, the image will be returned unfiltered. | no | [com.package.ClassName] | n/a |
filterparam | A set of one or more parameters that are understood by the filter or filter chain that is invoked. If values were previously configured inside the filterchain (i.e in serialized xml format), the values supplied here will overwrite them. | no | [String] | n/a |
encode | An encoding format for the resulting image. | no | Supported image types [png , gif , jpg , tif , bmp] | Source image format |