Configure batch processing with a datafile
masterYou can automate multiple exports by providing a path to a JSON file (or a Node module that exports the same structure). Each entry in the array defines an input and its corresponding outputs.
Datafile Format:
[
{
"input" : ["<input file>", "<option>", "<option>", ...],
"output": [ ["<output file>", "<option>", "<option>", ...] ]
}, ...
]Note: Input file options are merged with and overridden by output file options.
CLI Usage:
svgexport <datafile>
[
{
"input" : ["input.svg", "1.5x"],
"output": [ ["output.png", "80%"], ["output.jpg", "90%"] ]
}
]