Supported File Formats

Aspose.SVG for .NET works with file formats in more than one way. An SVG or SVGZ file can be loaded as a document and edited through the API. The same document can be rendered to a fixed-layout document or raster image. Raster artwork can also be used as input for vectorization, producing a new SVG document.

The table below distinguishes these workflows so that “supported” does not imply the same operation for every format.

Format Support by Workflow

FormatUse as source contentProduce as outputTypical operation
SVGLoad, create, edit, or renderSave an SVG documentWork with editable vector graphics
SVGZLoad compressed SVG contentSave compressed SVG outputStore or exchange GZIP-compressed SVG
PDFRender SVG to PDFCreate portable document output
XPSRender SVG to XPSCreate fixed-layout document output
PNGVectorize raster inputRender SVG to PNGProduce transparent or lossless raster output
JPEG/JPGVectorize raster inputRender SVG to JPEGProduce compact photographic-style output
BMPVectorize raster inputRender SVG to BMPProduce bitmap output
TIFFVectorize raster inputRender SVG to TIFFProduce image output for publishing or archiving workflows
GIFVectorize raster inputRender SVG to GIFProduce palette-based raster output
WebPRender SVG to WebPProduce web-oriented raster output
ICOVectorize raster inputTrace icon artwork into SVG paths

Work with SVG and SVGZ Documents

SVG is the native document format of the API. Applications can create SVG content, load an existing document, modify its DOM, and save the updated SVG file. SVGZ contains the same SVG markup in compressed form; it is useful when an SVG document needs a smaller stored or transferred representation.

For document-level operations, start with Create, Load and Read SVG Files in C# and Save an SVG Document in C#. Dedicated guides show how to convert SVG to SVGZ and convert SVGZ to SVG.

Render SVG to Documents and Images

Rendering takes an SVG document and creates output intended for distribution, display, printing, or further processing. Aspose.SVG for .NET renders SVG to PDF and XPS, as well as raster images in PNG, JPEG, BMP, TIFF, GIF, and WebP formats. WebP output is represented by the ImageFormat.Webp value in the image rendering API.

See Convert SVG Files in C# for the conversion workflow and Convert SVG to Images in C# for image rendering settings. Output appearance may depend on fonts, effects, resources, and image options; SVG Rendering Quality and Output Consistency explains what to evaluate before deployment.

Vectorize Raster Images to SVG

Image vectorization is a different operation from rendering. It accepts raster input and traces visible content into SVG paths. Aspose.SVG for .NET supports vectorization workflows for PNG, JPEG/JPG, BMP, TIFF, GIF, and ICO images. The resulting SVG is most useful for logos, icons, diagrams, and artwork with clean shapes and a manageable number of colors.

Use Image and Text Vectorization for an overview, or begin with the focused Convert PNG to SVG in C# guide.

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.