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