Bug 393470 - Colorize mask gives jagged result (compared to GMIC colorize)
Summary: Colorize mask gives jagged result (compared to GMIC colorize)
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Tools/Colorize (other bugs)
Version First Reported In: 5.2.9
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-24 15:47 UTC by cyaoeu
Modified: 2025-04-28 17:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Krita file for starting krita colorize/GMIC colorize (273.92 KB, application/x-krita)
2018-06-20 22:06 UTC, cyaoeu
Details
Krita colorize result (161.69 KB, image/png)
2018-06-20 22:07 UTC, cyaoeu
Details
GMIC colorize result (166.73 KB, image/png)
2018-06-20 22:10 UTC, cyaoeu
Details
KritaColorizeMask (22.76 KB, image/png)
2018-10-02 21:40 UTC, Tiar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyaoeu 2018-04-24 15:47:39 UTC
Colorize mask gives a jagged result (compared to GMIC colorize). In most cases the strokes hide the artifacts but in some cases they are very visible and ugly. 
See https://imgur.com/a/5DBrJk3 for a comparison.
Comment 1 Dmitry Kazakov 2018-04-24 18:25:50 UTC
Hi, cyaoeu!

Thank you for your report! Your abservation is really interesting. I'm not sure if I can tell how to fix that...

Btw, what it the usecase for these smooth borders? Do you want to fill without the strokes at all?

Could you also provide with a test file with the mask you created?
Comment 2 Halla Rempt 2018-06-20 21:36:42 UTC
Please attach images to the bug report, and also provide a test image so we can try to reproduce the issue.
Comment 3 cyaoeu 2018-06-20 22:06:26 UTC
Created attachment 113473 [details]
Krita file for starting krita colorize/GMIC colorize

.kra file.
Comment 4 cyaoeu 2018-06-20 22:07:51 UTC
Created attachment 113474 [details]
Krita colorize result

Left side has 2px strokes, right side has 1px strokes (bit extreme but shows the artifacts).
Comment 5 cyaoeu 2018-06-20 22:10:48 UTC
Created attachment 113475 [details]
GMIC colorize result

As before left side: 2px strokes, right side: 1px strokes. You can see there are less artifacts. The Krita colorize result has dots of red that poke through the stroke but the GMIC colorize result doesn't (at least way less) and looks better. The 1px stroke is almost eaten by the antialiasing but still looks okay because the aliasing has a constant pattern where the Krita result is very irregular and easily noticable that something is wrong.
Comment 6 Halla Rempt 2018-06-20 22:17:34 UTC
updating status
Comment 7 Tiar 2018-10-02 21:40:03 UTC
I can confirm, the results of Colorize Mask have artifacts, while GMIC Colorize (interactive) gives smooth results. I tried various options of Colorize Mask to make it work better, but it didn't.
Comment 8 Tiar 2018-10-02 21:40:50 UTC
Created attachment 115369 [details]
KritaColorizeMask

Source of the picture: close-up of the second right circle/oval from the original lineart, filled up with Colorize Mask. There is also a line from lineart moved to the left to show the artifacts a little better.
Comment 9 Vitamorus 2025-04-28 17:46:04 UTC
Re-confirming this bug for 5.2.9