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

createTiffEncoder () : nodeset

A picture can be transformed into the TIFF picture format using this method.

Possible input values for the Tiff compressions

  • NoCompression
  • Group3FaxEncoding
  • Group4FaxEncoding
  • JpegCompression
  • MacintoshPackbits
  • Deflate
  • Lzw
  • ModifiedHuffman
  • Default

If no parameters are specified, the value “Default” for the Tiff compression and the value “false()” for the parameter “append” is used.

<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:createTiffEncoder('Default',false()))" />
<b:output mimeType="image/tiff">
<b:webResponse expires="60" dispositionType="attachment" filename="TiffEncoderBeispiel" />
</b:output>
</xsl:template>
</xsl:stylesheet>
Example of TIFF Encoder

In this example, a picture is converted into the Tiff picture format with the Tiff compression default and then offered for download with the file name "TiffEncoderExample".