Browse our Products

Aspose.SVG for Python via .NET 25.5 Release Notes

Major Features

We are pleased to announce Aspose.SVG for Python via .NET 25.5.0 — a May release that streamlines the rendering pipeline, unifies graphic-context handling across devices, simplifies SkiaSharp integration, and delivers measurable performance and memory gains.

Highlights

FeatureBenefit
Image → SVG conversion
converter.convert_image_to_svg(…)
Vectorise raster images from a file path or stream, fully configurable through ImageVectorizerConfiguration.
Unified graphic-context modelEach rendering device (ImageDevice, PdfDevice, XpsDevice) now exposes an embedded …GraphicContext class that stores the complete drawing state in one object.
Rendering-API cleanupDozens of obsolete Canvas/Drawing/Adapter interfaces have been removed, resulting in a leaner public surface.

Enhancements & Fixes

  • Refactored graphics pipeline for faster SVG rendering and lower peak memory in complex documents.
  • Consolidated SkiaSharp support into the main package—no separate extension assembly is required.

Public API Changes

Added APIs

Namespace / TypeMember
aspose.svg.converters.converterconvert_image_to_svg(config, input_path, output_path)
convert_image_to_svg(config, stream, output_path)
aspose.svg.rendering.image.ImageDeviceclass ImageGraphicContext
aspose.svg.rendering.pdf.PdfDeviceclass PdfGraphicContext
aspose.svg.rendering.xps.XpsDeviceclass XpsGraphicContext

Modified APIs

  • aspose.svg.rendering.GraphicContext – event transformation_matrix_changed removed; state changes are now handled internally.
  • Existing device constructors are still valid, but code that used the removed low-level interfaces listed below must be migrated.

Removed APIs (Breaking)

  1. Canvas layerICanvas, ICanvasContext, all ICanvas*Factory, IPath, clip_strategy, and related types.
  2. Legacy drawing abstractionscolor_space, ICodec, IBitmap, IPixelsMap, viewport, gradient-brush cloning helpers, obsolete overloads in IDrawingFactory, and ILinearGradientBrush.clone/convert_to_texture_brush.
  3. Device-adapter hierarchyDeviceAdapter, ISvgDeviceContext, and all *DeviceFactory interfaces.
  4. Style & paint-server internalsISvgPropertyResolvingContext, ISvgPaintServerFactory, ISvgPaintServer, plus related enums.
  5. Typed-array helpersTypedArray, TypedArray[T], Uint8ClampedArray.
  6. MiscellaneousSvgGeometryElement.get_equivalent_path_as_i_path, SvgUseElement.instance_root, Url.compare_to.

For detailed examples and guidance, visit the documentation or post questions on the support forum.