http://onionworks.net/2006/imageservice/encoders

createGifEncoder () : nodeset

With this method pictures can be transformed into the GIF picture format. If the parameters are not specified, then the values “false” for the parameter “interlace” and “false” for the parameter “optimizeColorDepth” are set. No colour value is set for the parameter “transparentColor”, which represents the transparent colour of the picture.

The following example shows how the method is used, with the transfer of all possible parameters.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ise="http://onionworks.net/2006/imageservice/encoders" xmlns:is="http://onionworks.net/2006/imageservice" xmlns:b="http://onionworks.net/2004/renderengine/binary" xmlns:onion="http://onionworks.net/2004/data" 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:createGifEncoder(true(),true(), is:createColor(255,255,255)))" />
<b:output mimeType="image/gif">
<b:webResponse expires="60" />
</b:output>
</xsl:template>
</xsl:stylesheet>
Example of GIF encoder