Bug 414696 - Converting a filter mask created with selection into a paint layer doesn't work properly
Summary: Converting a filter mask created with selection into a paint layer doesn't wo...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-30 17:36 UTC by acc4commissions
Modified: 2020-06-04 19:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example (75.04 KB, image/png)
2019-11-30 17:36 UTC, acc4commissions
Details
Filter Masks to Paint Layers have rendering problems (332.60 KB, application/binary)
2019-12-01 20:01 UTC, Ahab Greybeard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description acc4commissions 2019-11-30 17:36:44 UTC
Created attachment 124215 [details]
example

SUMMARY
git 71ca2f2
It also happens in 4.2.8.

STEPS TO REPRODUCE
1. Select any area on the canvas.
2. Create a filter mask.
3. Convert it into a paint layer.

OBSERVED RESULT
The background becomes transparent, and black areas appear around the converted layer(which is bigger than the actual layer).

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: Win7
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 acc4commissions 2019-11-30 17:39:02 UTC
* Maybe not only background, but everything other than the converted layer becomes transparent.
Comment 2 Ahab Greybeard 2019-12-01 20:01:49 UTC
Created attachment 124249 [details]
Filter Masks to Paint Layers have rendering problems

I can Confirm this for the 4.2.8 appimage.

Using a selection to limit the extent of the filter mask gives what seems to be transparency in the mask, outside the selection. It should all be black outside the selection, I'd have thought.

Note: As a filter mask, it works fine.

When the mask is converted to a paint layer, that 'transparency' does not render well and causes all kinds of effects like making things transparent underneath it.
You can get the background back by turning off the paint layers that were made this way and then toggling the background on and off.

I attach a .kra file which has some paint layers that were obviously made in this way. You can turn them on and off to see the consequences.
Comment 3 Ahab Greybeard 2019-12-01 21:06:46 UTC
Extra Observation:

If you do a Layer Export of one of those paint layers as a .png file and then Import it back in, the resulting paint layer does not cause any of the problems that have been seen so far.

If you then convert it to a Filter mask, it has black instead of transparency and will then convert back to a paint layer with all black surround as expected.
Comment 4 Dmitry Kazakov 2020-06-03 12:31:55 UTC
The resulting layer also has "copy" blending mode, which breaks compositioning quite a lot.