2021-02-14 18:27:32 +00:00
|
|
|
import pixie, strformat, svg_cairo
|
2021-01-26 00:47:05 +00:00
|
|
|
|
|
|
|
const files = [
|
|
|
|
"line01",
|
|
|
|
"polyline01",
|
|
|
|
"polygon01",
|
|
|
|
"rect01",
|
|
|
|
"rect02",
|
|
|
|
"circle01",
|
|
|
|
"ellipse01",
|
|
|
|
"triangle01",
|
|
|
|
"quad01",
|
|
|
|
"Ghostscript_Tiger"
|
|
|
|
]
|
|
|
|
|
|
|
|
for file in files:
|
2021-05-29 06:26:56 +00:00
|
|
|
let image = decodeSvg(readFile(&"tests/images/svg/{file}.svg"))
|
2021-01-26 00:47:05 +00:00
|
|
|
image.writeFile(&"tests/images/svg/{file}.png")
|