stk:image.get-attachment-key(function)

Returns final image attachment key for an image, based on available size. This will ensure that an optimal prescaled version is used for further scaling. This function is normally not used directly.

xs:stringstk:image.get-attachment-key
  1. element()source-image
  2. xs:doubleavailable-width

Examples

No examples available

Parameters

source-image
The image element
Type
element()
available-width
The width available for scaling. The optimal prescaled version is picked based on this.
Type
xs:double