// I think that should be all, but in case a new version comes up with a different color space...
casePNG_COLOR_TYPE_GRAY:
casePNG_COLOR_TYPE_GRAY_ALPHA:
casePNG_COLOR_TYPE_RGB:
casePNG_COLOR_TYPE_PALETTE:
casePNG_COLOR_TYPE_RGB_ALPHA:
break;
default:
throwstd::runtime_error("PNG: codec does not support images with color spaces different than GRAY, GRAY+alpha, RGB, RGB+alpha or Indexed colors (Palette)");