Skip to content

Instantly share code, notes, and snippets.

View Slasherss1's full-sized avatar

Jan Szumotalski Slasherss1

View GitHub Profile
#!/usr/bin/env python3
"""
Python 3 code that can decompress (to a .gvas file), or recompress (to a .savegame file)
the UE4 savegame file that Astroneer uses.
Though I wrote this for tinkering with Astroneer games saves, it's probably
generic to the Unreal Engine 4 compressed saved game format.
Examples:
@jkctech
jkctech / README.md
Last active April 10, 2025 21:30
Automatic screenshot cropper for mobile screenshots on social media.

Auto Cropper

A small snippet that crops screenshots from social media platforms like Instagram to only contain the picture. This is done by looking for the first row / column on the top / bottom / top / left of the screen (Starting from the center) where all pixels are the same color. This -usually- marks the end of a picture.

This tool is NOT perfect and compression algorithms like JPEG might mess up the working of this tool. It's more of a "Best guess" method.

  1. Install "PIL" for Python: python -m pip install Pillow