Image Transform Example

This example executes a transformation on the specified image. The result is a byte-array, so use e.g. response.writebytes() to send the result to the client.

Smartsite SXML CopyCode image Copy Code
<!--// set the url -->
{buffer.set(url,"http://docs.ixperion.smartsite.nl/Images/XForms/XForms-Architecture.PNG")}

<!--// transform the image -->
{buffer.set(image, image.transform($url,"mxw=700;gs=1"))}

<!--// send the result (byte-array) to the client -->
{response.contenttype("image/jpeg")}
{response.writebytes($image)}