imageio.plugins.swf
Read/Write SWF files.
Backend: internal
Shockwave flash (SWF) is a media format designed for rich and interactive animations. This plugin makes use of this format to store a series of images in a lossless format with good compression (zlib). The resulting images can be shown as an animation using a flash player (such as the browser).
SWF stores images in RGBA format. RGB or grayscale images are automatically converted. SWF does not support meta data.
Parameters for reading
- loop : bool
If True, the video will rewind as soon as a frame is requested beyond the last frame. Otherwise, IndexError is raised. Default False.
Parameters for saving
- fps : int
The speed to play the animation. Default 12.
- loop : bool
If True, add a tag to the end of the file to play again from the first frame. Most flash players will then play the movie in a loop. Note that the imageio SWF Reader does not check this tag. Default True.
- html : bool