Commit 42f48a1a authored by Boudewijn Rempt's avatar Boudewijn Rempt

export images in unsupported colorspace to png as rgb

parent 6ea5d98b
......@@ -861,7 +861,8 @@ KisImageBuilder_Result KisPNGConverter::buildFile(QIODevice* iodevice, KisImageW
int color_type = getColorTypeforColorSpace(device->colorSpace(), options.alpha);
if (color_type == -1) {
return KisImageBuilder_RESULT_UNSUPPORTED;
color_type = options.alpha ? PNG_COLOR_TYPE_RGB_ALPHA : PNG_COLOR_TYPE_RGB;
// Try to compute a table of color if the colorspace is RGB8f
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment