Putting arbitrary data into a BMP
Posted by: Torchickens
Date: 2014-11-22 16:54:49
Starting offsets of color for pixel data:
24 bit BMP: $36
256 color BMP: $436
I haven't played with other types of BMPs yet.
The colours seem to be placed in the Bitmap bottom-up, so if you write data starting from $36 but don't finish writing the data, then the section of the image near the top won't be corrupted (like in my Pocket Monsters Midori image below)
Post your results here if you're interested. I suggest that you shouldn't send the image unchanged if it contains ROM data though; convert it into a PNG and re-size it first to obfuscate the data.
Pocket Monsters Midori (24-bit BMP):
[img]http://i2.minus.com/iER68DmhhADmM.png[/img]
First 50,000 primes encoded in ANSI with no spaces (256 color BMP):
[img]http://i3.minus.com/ibwz2LtnIwUGuJ.png[/img]
Download original.