ar.com/images/haha.jpg). The result of the transformation will be saved under /thumbs/{remote or local}/(original path)/(image) If you specify refresh="true" the transformation will be done on every request.
Note: If the requested image can't be transformed, a blank will be returned.
Note: there is a known problem with transparancy in thumbnails. (A possible solution might be to use BufferedImage.TYPE_INT_ARGB instead. Anyone ?)
Configurable attributes are (together with the cssClass, cssStyle, id, .. == standard UIBean attributes):
- src - the src of the image
- alt - the image's alt attribute
- resize - should the image be resized and stored (defaults to false)
- refresh - should the image be resized on every request (defaults to false)
- height - the image's height attribute
- width - the image's width attribute
Examples <!-- START SNIPPET: example --> <ww:image theme="simple" src="http://foobar.tld/images/logo.png" height="100" width="150" resize="true"/> <ww:image theme="simple" src="http://foobar.tld/images/logo.jpg"/> <ww:image src="%{object.chart}" height="30" width="150" resize="true" refresh="true"/> <ww:image src="/my/foobar.jpg" height="20" width="100" resize="true"/> <!-- END SNIPPET: example -->
Image
@author
Philip Luppens