I found out about Monolith, which is a good start, but unfortunately I still have to manually separate the header data and recombine it later (technically I'm still using my SoX batch files - stripped down to a couple lines - but I still have to manually rename files and it's only marginally better than my Audacity raw data days).
I really feel this, having once gone on a Coding Odyssey to make a simple program that just puts a circle on the screen that follows the mouse cursor. It really seems like the simplest stuff is the hardest to learn how to do.
...and I got curious about bitwise xor of image data so I worked out a sort-of-not-really convenient method with ImageMagick, some code off Github that I'm amazed wasn't a virus, and an extremely fragile shell script:
#!/bin/sh
SIZE=`identify -format "%wx%h" "$1"`
convert $1 $1.rgb
convert $2 $2.rgb
xor-files $1.rgb $2.rgb > xor_temp.rgb
convert -size $SIZE -depth 8 xor_temp.rgb $3
Of course because I have no idea where they tell you how to write shell scripts this is hacked together from the parts of another script which I could work out what they did, and getting everything to actually work together was somewhat frustrating. This isn't a general solution to the problem, but it is pretty fun to mess with now that I have it working.
