Converts multiple SVGs to base64-encoded PNG strings using a single Chrome session. Much faster than calling svg_to_png_chrome() repeatedly.
batch_svg_to_base64_chrome(
svg_list,
dpi = 300,
background = "transparent",
load_wait = 0.5,
restart_every = 50,
retry_attempts = 3,
progress = TRUE
)Character vector of base64-encoded PNGs (data URI format). Returns NA for failed conversions.
List of SVG strings or file paths.
Resolution (default 300).
Background color (default "transparent").
Seconds to wait for each page to load (default 0.5). Increase if conversions are failing.
Restart Chrome session every N conversions (default 50). Helps prevent memory issues and stale connections.
Number of retry attempts on failure (default 3).
Show progress bar (default TRUE).