Copyright© 2008-2026 Sitevision AB, all rights reserved.
public interface ImageScaler
ImageRenderer.
An immutable instance of the Sitevision class implementing this interface can be obtained via
Utils.getImageScaler(int, int).
See Utils for how to obtain an instance of the Utils interface.
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxHeight()
Returns max height in pixels for images scaled with instances of this interface.
|
int |
getMaxWidth()
Returns max width in pixels for images scaled with instances of this interface.
|
Node |
getScaledImage(Node aImageNode)
Creates a scaled image using the width and height of this scaler.
|
int getMaxWidth()
int getMaxHeight()
Node getScaledImage(Node aImageNode)
Note! SVG images can't be scaled, i.e. calling this method with a sv:image of svg type will always return null.
Important Note! The scaled image is a very short-lived and volatile kind of node. Its parent/child relationship can never be relied upon. Hence the JCR Path (and tree-related operations) of the returned scaled image node should never be used (i.e. only use the returned node to get the properties you are interested in).
aImageNode - a image nodeSitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2026 Sitevision AB, all rights reserved.