Supported File Formats in Aspose.SVG for Python

Quick Answer

Aspose.SVG for Python via .NET loads SVG and SVGZ documents and saves or converts SVG content to SVG, SVGZ, PDF, XPS, PNG, JPG, BMP, TIFF, and GIF workflows depending on the API used. Use SVGDocument.save() with SVGSaveFormat for SVG or SVGZ output and Converter.convert_svg() to export to other formats.

Format Support Overview

Use this page to confirm the format workflow before choosing a tutorial. SVG and SVGZ are document input formats, where SVGZ is the same SVG markup stored in compressed form. Conversion APIs export SVG content to document and raster image formats.

FormatDescriptionLoadSave or exportStart here
SVGScalable Vector GraphicsticktickCreate SVG File
SVGZGZIP-compressed SVGticktickSVGDocument and SVGSaveFormat
PDFPortable Document FormattickConvert SVG to PDF
XPSXML Paper SpecificationtickConvert SVG Files
PNGPortable Network GraphicstickConvert SVG to PNG
JPGJoint Photographic Experts Group imagetickConvert SVG to Image
BMPBitmap Image FiletickConvert SVG to Image
TIFFTagged Image File FormattickConvert SVG to Image
GIFGraphics Interchange FormattickConvert SVG to Image

Save vs Convert

Use SVGDocument.save() when you want the output to remain SVG or compressed SVGZ. Use Converter.convert_svg() or rendering devices when you need PDF, XPS, PNG, JPG, BMP, TIFF, or GIF output.

GoalRecommended APIRelated article
Load SVGZ for editing or renderingSVGDocumentCreate SVG File
Save edited SVG as SVGSVGDocument.save()Save SVG File
Save edited SVG as SVGZSVGDocument.save() with SVGSaveFormatSave SVG File
Convert SVG to PDFConverter.convert_svg() with PdfSaveOptionsConvert SVG to PDF
Convert SVG to PNGConverter.convert_svg() with ImageSaveOptionsConvert SVG to PNG
Convert SVG to JPG, BMP, TIFF, or GIFImageSaveOptions and image format selectionConvert SVG to Image

FAQ

Can Aspose.SVG for Python via .NET load PDF or PNG files as SVG documents?

No. SVG is the primary document input format for SVG document workflows. Raster-to-vector workflows are covered by image vectorization APIs.

Can I save SVG after editing?

Yes. Use SVGDocument.save() to save the edited SVG document.

Can I save SVG as SVGZ?

Yes. Use SVGDocument.save() with SVGSaveFormat when you need compressed SVGZ output.

Can Aspose.SVG load SVGZ files?

Yes. Load an .svgz file with SVGDocument when you need to inspect, edit, save, or render compressed SVG content.

Is SVGZ a separate vector format?

No. SVGZ stores the same SVG markup in GZIP-compressed form. Use it when you need smaller SVG files for storage or transfer.

What is the difference between save and export?

Saving keeps the result as SVG or SVGZ. Exporting renders the SVG document to PDF, XPS, PNG, JPG, BMP, TIFF, or GIF.

Where do I check current package compatibility?

Check the aspose-svg-net package on PyPI for current package metadata, supported Python versions, and platform information.

Related Articles