What\'s the easiest way to get programmatically the dimensions and format (color depth) of a PNG file without reading the entire file with libpng or png++ ?