[BlushyFace.Util] Extracting *.gif files to sprite sheet
Home » Projects » [BlushyFace.Util] Extract GIF files to spritesheets + GUI

[BlushyFace.Util] Extract GIF files to spritesheets + GUI

A way to extract GIF files into a sprite sheet.

Note: This is a stripped down version of the BlushyFace.Util library that is used for my other projects (such as BlushyAvatars etc) written in C#. This version does not provide / generate a meta data file such as frame time and other info that might be useful to include when using the generated sprite sheet or other features such as adding padding, resizing etc.

.NET framework 4.7x or higher + internet connection if you are converting files from the internet.

How to use
Look at the example code below how to use it.

The extracted files will be created in {basedir}\finished\ and the temp files (extracted frames) in {basedir}\temp\
To use it you need to add it to your project (example in VS -> references, add reference, find “BlushyFace.dll” and then click “OK”).

Basically there are 2 methods provided:

Utilities.DownloadFile(url of file, save location);
Utilities.ExtractGifToSpritesheet(output name, file location, save location, clean up temp files);

Example code

Example console output

Result (original)

result (output)

The file can be downloaded in our discord server in the “home-of-blushies” look for “ConvertGifToSpriteSheet.rar” or blog.blushyface.com/download/gif-to-sprite-sheet-extractor/

Made a GUI version for those that prefer that.

Update #1 added a checkbox to delete the extracted frames in \temp\

Update #2 added an “open directory” button to open output directory directly

Update #3 added “merge down” to merge extracted gifs / png’s as a single spritesheet



Herrow, I'm BlushyFace and here you can find things I've made for our awesome community.

Got an idea or suggestion that would be cool for me to draw / create and to add to the site? Let me know in our Discord!

Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments