Skip to content

A python program to allow creation of GIFs and PNGs directly from DMI files.

License

Notifications You must be signed in to change notification settings

Contrabang/DMItoGIF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DMItoGIF

A python program to allow creation of GIFs and PNGs directly from DMI files for BYOND.

Currently does NOT support frames with decimal delays. Any decimal delays will be rounded to the nearest number, or 1 if below 1. This is because PIL doesn't support gifs with changing fps. To get around this, delays are just copied image frames over and over.

Some of the methods here are somewhat hacky and may break in the future, or depending on your PIL installation.

Use

Download dmitogif.py, and run the file in a terminal. Select your .dmi file. use /list or type in your icon state. If the icon_state has multiple directions, pick between front facing or all directions. Choose an image size multiplier. The output file (gif or png) will be created in the same directory as the dmitogif.py file.

Dependencies

Python Image Library (PIL)

About

A python program to allow creation of GIFs and PNGs directly from DMI files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages