2021-03-03 18:37:15 +00:00
|
|
|
import pixie, pixie/fileformats/gif
|
2021-03-01 09:01:04 +00:00
|
|
|
|
2021-10-03 22:17:04 +00:00
|
|
|
var img = decodeGIF(readFile("tests/fileformats/gif/3x5.gif"))
|
|
|
|
img.writeFile("tests/fileformats/gif/3x5.png")
|
2021-03-01 09:01:04 +00:00
|
|
|
|
2021-10-03 22:17:04 +00:00
|
|
|
var img2 = decodeGIF(readFile("tests/fileformats/gif/audrey.gif"))
|
|
|
|
img2.writeFile("tests/fileformats/gif/audrey.png")
|
2021-03-01 09:01:04 +00:00
|
|
|
|
2021-10-03 22:17:04 +00:00
|
|
|
var img3 = decodeGIF(readFile("tests/fileformats/gif/sunflower.gif"))
|
|
|
|
img3.writeFile("tests/fileformats/gif/sunflower.png")
|
2021-03-01 16:53:15 +00:00
|
|
|
|
2021-10-03 22:17:04 +00:00
|
|
|
var img4 = readImage("tests/fileformats/gif/sunflower.gif")
|
2021-03-01 16:53:15 +00:00
|
|
|
doAssert img3.data == img4.data
|