@maple bash and imagemagick would definitely do it but I have a feeling it might end up a little more arcane than a python solution
Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!