Support G+A PNG (without alpha of course)

This commit is contained in:
Kornel
2017-04-30 14:19:59 +01:00
parent e95be67503
commit 2dd5ae7b83

View File

@@ -74,7 +74,7 @@ start_input_png (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
return;
}
if (color_type == PNG_COLOR_TYPE_GRAY) {
if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
cinfo->in_color_space = JCS_GRAYSCALE;
cinfo->input_components = 1;
} else {