createJpegEncoder () : nodeset

With this method the picture can be transformed into the JPEG picture format. With the parameters “quality”, “smoothing” and “progressive”, the picture quality, smoothing and structure of the picture can be controlled. If these parameters are not transferred, then the values “75” for “quality”, “0” for “smoothing” and “false()” for progessive are set.

<xsl:stylesheet xmlns:xsl="" xmlns:ise="" xmlns:is="" xmlns:b="" xmlns:onion="" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes" indent="no" />
<xsl:template match="/resource">
<xsl:variable name="workspace" select="is:createWorkspace(@src, true())" />
<xsl:variable name="doWrite" select="is:writeWorkspace($workspace,ise:createJpegEncoder(90,10,true()))" />
<b:output mimeType="image/jpeg">
<b:webResponse expires="60" />
Example of JPEG encoder