pixie/tests/test_ppm.nim
2022-01-09 17:43:43 +02:00

8 lines
255 B
Nim

import pixie/fileformats/ppm
block:
for format in @["p3", "p6"]:
let image = decodePpm(readFile(
"tests/fileformats/ppm/feep." & $format & ".master.ppm"
))
writeFile("tests/fileformats/ppm/feep." & $format & ".ppm", encodePpm(image))