Created attachment 110075 [details] select the 'colorization mask', choose 'split layers...' -> it takes forever. If canceled the progress just starts over from 0% So on a moderate image size 3.8 x 2K resolution I tried the 'colorization mask' method. After finishing a very simple drawing, the 'split layers' step doesn't seem to finish or at least it takes >15 min to complete. It makes this pretty much useless. I've attached the image with the problem, fortunately krita saved a backup.
Just thought of it, but if I first convert the 'colorization mask' to paint layer then select 'split layer...', the operation finishes quickly <1 sec.
Hm, https://docs.krita.org/Colorize_Mask does recommend to convert to paint layer first: "Now we are done, right mouse button the colorize mask and Convert → to Paint Layer. Then, Layer → Split → Split Layer. This will give seperate color islands that you can easily edit: " However, when I selected the colorize mask and then selected Layer/Split/Split layer the result was the same, and instantaneous.
Interesting, maybe OS might be a factor? I'm on Ubuntu 17.10 (xorg-server) now. Wonder why in your case is instantaneous.
I can reproduce this on arch linux and Krita built from git master. To reproduce after you are done with generating the colors, disable the edit key in the colorize mask and then select the mask and hit split layers. Also if edit key is enable it just splits the color maskings for me and not the result. Also I can't cancel the hung split process in the status bar
I think the solution here would be, that if the user tried to use Split Layers on a Colorize Mask, it should first (automatically) convert it to Paint Layer and then split the usual way. (It could also default to the number of colors on the colorize mask, if possible). There is no point in having Colorize Mask with splitted colors anyway, so converting won't be a dataloss for the user (and one can always undo).
Git commit b4e6c662c0c89162b8d134488ebc9d6cfc84af3f by Dmitry Kazakov, on behalf of Srirupa Datta. Committed on 09/06/2021 at 05:30. Pushed by dkazakov into branch 'master'. Convert Colorize Mask to Paint Layer before splitting layers FIXED IN: 5.0.0 M +5 -0 plugins/extensions/layersplit/layersplit.cpp https://invent.kde.org/graphics/krita/commit/b4e6c662c0c89162b8d134488ebc9d6cfc84af3f