svg_to_png | R Documentation |
This function converts an SVG file to a PNG file by calling the respective InkScape function through Python.
svg_to_png(
svg = svg,
inkscape_path = "C:/Program Files/Inkscape/bin/inkscape.exe",
out = NULL,
dpi = 300,
width = 2281,
height = 2166
)
svg |
A character string specifying the path of the SVG file to be converted. |
inkscape_path |
The local path to the 'inkscape.exe' file. |
out |
A character string specifying the desired name of the output file. If |
dpi |
A numeric value specifying the desired dots per inch of the output file. The default is 300. |
width |
A numeric value specifying the desired width of the output file. The default is 2281. |
height |
A numeric value specifying the desired height of the output file. The default is 2166. |
A message specifying the location of the output file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.