Skip to content

Instantly share code, notes, and snippets.

@cmartello
cmartello / mergentr.py
Created June 4, 2017 13:48
Takes a directory of screenshots taken by NTR and stitches them together.
"""NTR for 3DS screenshots are dumped into two seperate files (top_ and bot_) and stored
in .bmp format. This script lets you merge those files into one (as a .png) fairly quickly.
Some caveats:
- This script is not clever and will not protect you from yourself. It pretty much expects
these files to be exactly 400x240 and 320x240 BMPs in RGB format. Anything else will
probably crash it.
- NTR has a habit of truncating screenshots randomly. As such, some files will be malformed
and the first point will apply.
Some good news though, this process takes a little over a minute for 140 odd screenshots, so
you won't be waiting long for your output. Also my one test run took my storage from 70 megs