href_base_64_from_file method

href_base_64_from_file

Sets the ‘href’ attribute of the SVG ‘image’ element using a base64 encoded image file.

Returns

The current instance of SVGImageElementBuilder for method chaining.

def href_base_64_from_file(self, image_path):
    ...
ParameterTypeDescription
image_pathstrThe file path of the image.

href_base_64_from_file

Sets the ‘href’ attribute of the SVG ‘image’ element using a base64 encoded image file with a specified MIME type.

Returns

The current instance of SVGImageElementBuilder for method chaining.

def href_base_64_from_file(self, file_path, mime_type):
    ...
ParameterTypeDescription
file_pathstrThe file path of the image.
mime_typestrThe MIME type of the image.

See Also