Option for png answser: output to bmp. Create a white image of the same size in Paint (or whatever is available on Mac), open it using notepad, select the file header (for 800 * 600 it is 42 4D 36 F9 15 00 00 00 00 00 36 00 00 00 28 00 - 00 00 20 03 00 00 58 02 00 00 01 00 18 00 00 00 00 00 00 00 F9 15 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 27), add the results glReadPixels, flush, close.
So yes, there are a lot of files, but this is usually not a problem, since most openGL applications do not use the hard drive too much.
(I know this is pretty dirty, but this is the easiest way to implement it - I did it on the train once, without any documentation)
source share