I learned that when I hacked the image verifier on phpBB2 to stop the spam bots on my forum. I had to learn the PNG format to change the image generator. It actually has a bunch of cool formats, but the most commonly used ones are zipped 8-bit (grayscale) or 32-bit bitmaps.