Browse our Products
Aspose.SVG for Python via .NET 25.1 Release Notes
Major Features
We are pleased to announce the January release of Aspose.SVG for Python via .NET 25.1.0. This update brings important enhancements aimed at improving how you save and process SVG files in Python. Notable additions include support for compressed SVGZ output, new overloads for the SVGDocument.save(...)
method, and a new property in IUserAgentService that improves control over placeholder images. Below is a summary of the key changes:
Enhancements and Fixes
SVGZ Support and New
save(...)
Overloads- Added the
SVGZ
member to theSVGSaveFormat
enum, allowing you to save documents in the compressed SVGZ format. - Enhanced
SVGDocument.save(...)
methods to automatically compress to.svgz
when the file extension is.svgz
. For example:save("output.svgz")
save("output.svgz", SVGSaveFormat.SVGZ, save_options)
- Added the
User Agent Service Updates
- Introduced the
show_image_placeholders
property inIUserAgentService
. When enabled, fallback (placeholder) images are displayed if an external resource is in an unsupported format.
- Introduced the
Updated Public API
New Field in
SVGSaveFormat
SVGSaveFormat.SVGZ
: Enables saving SVG documents in compressed SVGZ format.
Enhanced
SVGDocument.save(...)
Overloads- Methods now detect the
.svgz
extension automatically:save(url)
save(path)
- Additional overloaded methods accepting
SVGSaveOptions
and/orSVGSaveFormat
parameters:save(path, save_format, save_options)
save(resource_handler, save_format, save_options)
save(url, save_format, save_options)
- Methods now detect the
show_image_placeholders
inIUserAgentService
- A new boolean property that controls whether placeholder images should be displayed when encountering an unsupported image resource.
These updates make it easier to manage SVG resources—particularly for saving, compressing, and handling fallback images. To learn more or see examples of using the new methods, please refer to our official documentation. If you have any questions, feel free to reach out on our support forums.