Test cases / image

deft image frames

Save each frame of an animated GIF as PNG

1 run on real files, 1 test on generated files, not shown. 0 failed.

Fixed cases

Generated files, compared with ground truth by tools other than deft.

real animationPassed

deft image frames earth.gif -o f/

Input

earth.gif 978.2 KB · 400x400
earth.gif

Output

f/earth-001.png 61.3 KB · 400x400
f/earth-001.png
f/earth-002.png 60.1 KB · 400x400
f/earth-002.png
f/earth-003.png 58.6 KB · 400x400
f/earth-003.png
f/earth-004.png 57.3 KB · 400x400
f/earth-004.png
f/earth-005.png 55.8 KB · 400x400
f/earth-005.png
f/earth-006.png 55.7 KB · 400x400
f/earth-006.png
f/earth-007.png 55.5 KB · 400x400
f/earth-007.png
f/earth-008.png 56.2 KB · 400x400
f/earth-008.png
f/earth-009.png 55.4 KB · 400x400
f/earth-009.png
f/earth-010.png 55.7 KB · 400x400
f/earth-010.png
f/earth-011.png 54.1 KB · 400x400
f/earth-011.png
f/earth-012.png 53.4 KB · 400x400
f/earth-012.png
f/earth-013.png 50.4 KB · 400x400
f/earth-013.png
f/earth-014.png 48.6 KB · 400x400
f/earth-014.png
f/earth-015.png 45.3 KB · 400x400
f/earth-015.png
f/earth-016.png 42.3 KB · 400x400
f/earth-016.png

And 28 more files.

What it printed
ok image.frames earth.gif -> f/  44 frames  1.72s
Automatic checks (1)
  • python: code = "import os; assert len(os.listdir('f')) > 5"