grayscale gih brushes made with transparent layers paint black squares
Submitted by Elle Stone
Created attachment 335299 grayscale gih brushes made using transparent layers paint black squares
When making a grayscale gih brush with transparent layers, the resulting brush just paints black squares. Looking at the code in file-gih.c (https://git.gnome.org/browse/gimp/tree/plug-ins/common/file-gih.c#n1201), it looks like any alpha channels are supposed to be ignored, but it seems like something isn't happening as intended - maybe the transparent backgrounds are being filled with black instead of white?
case GIMP_GRAY_IMAGE: case GIMP_GRAYA_IMAGE: /* alpha channel is ignored */ format = babl_format ("Y' u8");
Removing the alpha channels before exporting the brush (and making sure the background color is white) makes a brush that works as expected.
Version: git master