module imghelper.svg_helper

Short summary

module pyquickhelper.imghelper.svg_helper

Helpers around images and SVG.

Functions

function

truncated documentation

guess_svg_size

Guesses the dimension of a SVG image.

svg2img

Converts an image in SVG format.

Documentation

Helpers around images and SVG.

New in version 1.7.

source on GitHub

pyquickhelper.imghelper.svg_helper.guess_svg_size(svg)[source][source]

Guesses the dimension of a SVG image.

Parameters

svgSVG description

Returns

size (x, y)

source on GitHub

pyquickhelper.imghelper.svg_helper.svg2img(svg, dpi=None, scale=1.0, **kwargs)[source][source]

Converts an image in SVG format.

Parameters
  • svg – svg

  • dpi – image resolution

  • scale – scale

  • kwargs – additional parameters

Returns

image

The module relies on the following dependencies:

source on GitHub