pixie/tests/test_svg.nim

10 lines
290 B
Nim
Raw Normal View History

2020-12-04 16:17:03 +00:00
import pixie/fileformats/svg, pixie
let
original = readFile("tests/images/svg/Ghostscript_Tiger.svg")
image = decodeSvg(original)
2020-12-04 20:09:08 +00:00
gold = readImage("tests/images/svg/Ghostscript_Tiger.png")
doAssert image.data == gold.data
# image.writeFile("tests/images/svg/Ghostscript_Tiger.png")