First time here? Check out the FAQ!
answered 2013-01-19 07:28:19 -0600
Under Unix/Linux you can use 'identify image.png', which (should) read just the header information. Maybe you can use it in your program.