module documentation

svgutil.py

Provides get_dimensions, set_dimensions helper functions for SVG image generation, manipulation, and rendering. It creates scalable vector graphics, applies transformations, and generates dynamic diagrams.

License: GNU General Public License v2 or later, Organization: ZMS Publishing

Function get_dimensions Return intrinsic SVG dimensions as (width, height) in pixel units.
Function set_dimensions Update width/height attributes in SVG data and return the image object.
Variable security Undocumented
def get_dimensions(image): (source)

Return intrinsic SVG dimensions as (width, height) in pixel units.

Width/height attributes are preferred; viewBox is used as fallback.

def set_dimensions(image, size): (source)

Update width/height attributes in SVG data and return the image object.

If the object is not an SVG or has no detectable dimensions, the image is returned unchanged.

security = (source)

Undocumented