convert_image_to_svg method

convert_image_to_svg

Converts a raster image located on disk to SVG format.

def convert_image_to_svg(self, configuration, image_file, output_path):
    ...
ParameterTypeDescription
configurationaspose.svg.imagevectorization.ImageVectorizerConfigurationThe ImageVectorizerConfiguration that controls tracing parameters.
image_filestrPath to the source image file.
output_pathstrDestination path for the generated SVG.

convert_image_to_svg

Converts a raster image provided as a Stream to SVG format.

def convert_image_to_svg(self, configuration, image_stream, output_path):
    ...
ParameterTypeDescription
configurationaspose.svg.imagevectorization.ImageVectorizerConfigurationThe ImageVectorizerConfiguration that controls tracing parameters.
image_streamio.RawIOBaseReadable stream that contains the source image.
output_pathstrDestination path for the generated SVG.

See Also