The only thing I could offer is my jpeg tool but all it does is read all the bytes then manipulate them in memory. And for writing it just writes fills a bytearray then writes that, so probably not particularly useful either. (If you’re looking for usages of bit manipulation it’s probably a decent source though 🧌 )