Export SVG Graphics as TIFF

Aspose.HTML for Python via .NET converts SVG files or URLs with SVGDocument, ImageSaveOptions, and Converter.convert_svg(). Select ImageFormat.TIFF and configure the compression method required by the destination.

TIFF stores raster pixels rather than SVG vectors. Resolution, page dimensions, color content, and compression affect the output size and suitability for downstream imaging systems.


Convert SVG to TIFF and View the Python Code

Choose an SVG file or URL and keep TIFF selected. The widget creates TIFF output and matching Python code.

The example selects ImageFormat.TIFF and writes output.tiff. Add a TIFF compression setting when the destination requires it.

Python Code to Convert SVG to TIFF

import aspose.html.converters as conv
import aspose.html.dom.svg as ahsvg
import aspose.html.rendering.image as rim
import aspose.html.saving as sav

with ahsvg.SVGDocument("input.svg") as document:
    options = sav.ImageSaveOptions(rim.ImageFormat.TIFF)
    conv.Converter.convert_svg(document, options, "output.tiff")



How to Convert SVG to TIFF in Python

  1. Load the SVG file or URL with SVGDocument.
  2. Create ImageSaveOptions with ImageFormat.TIFF.
  3. Configure dimensions, resolution, background, CSS, text rendering, or TIFF compression.
  4. Call Converter.convert_svg() and close the document.



Configure TIFF Resolution and Compression

  • Set page dimensions and resolution for the target imaging or print workflow.
  • Use LZW for lossless color or grayscale content when supported by the destination.
  • Use CCITT3 or CCITT4 for suitable black-and-white content, not full-color artwork.
  • Choose RLE or uncompressed output only when required by the receiving system.
  • Resolve external SVG images, styles, and fonts before conversion.

See the SVG Converter guide and ImageSaveOptions API Reference .



Install Aspose.HTML for Python via .NET

Install the aspose-html-net package from PyPI .

Install Aspose.HTML for Python via .NET

pip install aspose-html-net

Review the installation guide and system requirements before deployment. Request a temporary license to test the API without evaluation limitations.



SVG to TIFF FAQ

1. Which TIFF compression methods are available for SVG conversion?

The ImageSaveOptions.compression supports LZW, CCITT3, CCITT4, RLE, and uncompressed TIFF output. Choose a method supported by the receiving application.

2. Should CCITT compression be used for a full-color SVG?

No. CCITT3 and CCITT4 are intended for suitable one-bit black-and-white content. Use LZW or another compatible choice for color and grayscale artwork.

3. Can the TIFF resolution be configured during SVG conversion?

Yes. Set horizontal and vertical resolution in ImageSaveOptions together with page dimensions appropriate for the target workflow.

4. Does SVG to TIFF conversion keep vector paths?

No. TIFF stores raster pixels. Convert at the required size and resolution because the TIFF no longer has SVG vector scalability.

SVG and TIFF Conversion Guides

Choose another SVG image format or continue with PDF output.