Specific type of selection

I happen to be in need of one specific type of selection on the layer. I don’t know if Krita supports something like that or if there is a workaround, but this is what I need:

This is, lets say, a messy line art. As you can see lines are uneven and everything. Black lines.

However there is obvious pattern through these lines, through the middle of them and along their length. The red line.

My question is, can I somehow do a sort of selection that is going to “select” this messy line art in a way where selection is going to be approximately along this red line path? This is important to me as I could then just “stroke selection” and get a clean line art in an instant. Manually tracing through messy line art is WAY too time consuming and exhausting when doing it carefully and correct.

By the way, this has nothing to do with pixel art. For some stuff that I work on, I use pixel perfect brush (on a large canvases of like 2048x2048 or 4096x4096) as I want to avoid fuzzy lines on a base version of an image. Then often I realize that some major detail on my big image really has to be smaller or bigger and then I am forced to up/downscale some line art that previously was drawn with pixel-clean lines. I am looking into a way to rebuild that clean line art as fast as possible after scale (“nearest neighbor” scale algorithm is no go since it deforms line art too much) with exact line thickness. The way I see it, one such fast way would be a selection that goes through the middle of that scaled fuzzy line art and then simple stroke selection that is using pixel perfect brush as a base. Manual tracing through scaled line art turned out to be a complete nightmare.

Sorry, but everything I know and can think of currently will (completely) smoothen out your sharp and fuzzy line art.

Michelist

In the Select menu try these actions, you want to first do select opaque (replace), and then do combinations of shrink/smooth. You can also select all the pixels with no alpha, then invert (similar color selector tool + invert selection.

Here is a plugin that puts all these into UI, it does not track undo history so use with caution. Save/backup your work frequently. Written by Gemini. Today added the threshold selection, it will select all pixels with alpha above the amount indicated. Threshold selection is currently extremely sharp, so you may be able to use a Gmic anti alias filter to make it less sharp… :thinking:

To install: Tools>Scripts>Import Plugin from File locate the plugin, restart Krita, click enable, restart, and you should be able to find the docker in the list of dockers settings>dockers

You could also experiment with this script that converts the current selection into a assistant (the .paintingassistant file is saved to temp, has to be manually loaded using the assistant tool load assistant button in tool options). I’ve wanted a way of making a stroke selection with opacity or brush strength or whatever, this is the closest I’ve gotten. :cowboy_hat_face:

Thanks, you got me quite a few things to experiment with :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.