Learn R Programming

cardargus (version 0.2.2)

batch_svg_to_png: Batch convert multiple SVG cards to PNG

Description

Convert a list of SVG strings to PNG files in a given directory. Fonts are embedded automatically for consistent rendering.

Usage

batch_svg_to_png(
  svg_list,
  output_dir = ".",
  prefix = "card",
  dpi = 300,
  background = "transparent"
)

Value

Character vector of output paths.

Arguments

svg_list

List of SVG strings.

output_dir

Output directory.

prefix

File name prefix.

dpi

Resolution.

background

Background color for PNG output.