Gif to Sprite Converter - Upload Gifs Without Sacrificing Quality!

Published 2021-01-02
I would like to introduce my new gif to sprite converter! Written in 100% client-side JavaScript and HTML, all you need to do is upload a gif file saved to your computer and wait until the website generates a .sprite3 file you can upload to your Scratch project! Each downloaded sprite contains 100% of the costumes and code you need for your gif to be in Scratch! This converter also does not sacrifice quality for any of your animations

Website for tool: https://scratch-tools.github.io/gif2sprite/

Example gif from https://giphy.com/gifs/89a-design-art-animation-povenlBAIz14s
@Wavecolor for inspiring this project



Thanks to StackOverflow, GitHub, and Google for helping me find the libraries needed.

JavaScript Libraries Used:
gif-frames - to get individual frames from a gif file - https://github.com/benwiley4000/gif-frames
JSZip - to generate a zip file (SB3 and sprite3 files are actually just disguised zip files) - https://github.com/Stuk/jszip
FileSaver.js - to download the zip files - https://github.com/eligrey/FileSaver.js
SparkMD5 - for generating md5 hashes needed for costumes - https://github.com/satazor/js-spark-md5