monorepo/jpg-unscrewer
2024-06-20 13:28:39 -04:00
..
README.md [jpg-unscrewer] added script 2024-06-20 13:28:39 -04:00
unscrewer.py [jpg-unscrewer] added script 2024-06-20 13:28:39 -04:00

jpg unscrewer

Tool to manually remove JPG corruption. You can use it to rapidly poke bytes and see the effects.

This script is provided as-is, without argparse, so you have to set the arguments at the top of the script (sorry).

The intended use case is to first open the file in hed, and poke addresses by visual-selecting bytes and zeroing them all. Open an image viewer like nsxiv that will auto-reload when the image changes. Then, when a region seems to have an interesting effect on the image, plug the address into this script and iterate until the image seems better.

The image that made me write this script was (mostly) fixed with changes in around 5 bytes total, plus some color edits in GIMP.