Scripts for Deflate compression and for putting Deflated data into a gzip file, as well as scripts for making CRC32 codes (because that's required by gzip) and for making base64-encoded data (for output purposes) This project is mainly just a demonstration (it just compresses an input string), but hopefully it'll be useful for at least some projects that *I* make. :-P
For *decompression*, I also now have this project: https://scratch.mit.edu/projects/417305435/ Also see ZHLZ, a text compression format I created: https://scratch.mit.edu/projects/490870154/ Since I've gotten a couple comments asking about it: Please feel free to use these these sprites/scripts in your own projects! Having DEFLATE implemented in Scratch is cool, but I think it'd be even cooler to see it actually used for a variety of things! Some notes on functionality: - I didn't bother optimizing this at all, so it's probably not as fast as it hypothetically could be (EDIT: it also may not work as well in Scratch 3.0) - I also haven't done any proper tests to make sure it completely works, so it's *possible* that there are some rare cases where it'll produce invalid output >.>