Usage:
$ python3 lmi.py swf-file-you-want-to-inspect.swf
lmi exports the image content of DefineBitsLossless
and other tags as image files. The files are named after the character IDs, like this:
$ python3 lmi.py path/swf-file.swf
$ ls path
swf-file.swf
swf-file.swf.characters.3.png
swf-file.swf.characters.15.png
swf-file.swf.characters.19.png
swf-file.swf.json
The JSON file contains an array of all tags, in the original order and with all information contained in each tag.
Right now, lmi only parses very few tags.
- SetBackgroundColor
- ShowFrame
- End
- SymbolClass
- DefineBitsLossless2
- DefineBitsLossless - This one is not entirely tested yet.
Partially supported:
- DefineSound - No actual sound data is exported.
- DefineShape - Only parses some basic data and a bit of the style definitions.
- DefineShape2 - See above.
- DefineShape3 - See above.
Roadmap:
- DefineShape4
- FileAttributes
- DefineSprite
- DefineButton
- PIL - actually,
pillow
. install withpip
:$ sudo -H pip install pillow
. Might requirepython3-dev
or a comparable package to build.