Bug 406490

Summary: Filter only applies to visible area of the canvas instead of all pixel data in layer.
Product: [Applications] krita Reporter: vanyossi <ghevan>
Component: FiltersAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: dillon.aron, dimula73, halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description vanyossi 2019-04-13 04:38:35 UTC
SUMMARY
Krita paints outside the visible area of the canvas, but if a filter is applied or baked from a filter layer, only the visible part of the canvas gets the filter applied to.

Its not possible to move the layer after that as an ugly seam becomes visible.

STEPS TO REPRODUCE
1. New image import image to canvas
2. Transform layer making pixels go beyond visible area
3. Filter > adjust > invert
4. Move layer to reveal hidden/obscured pixels.

OBSERVED RESULT
Out of edge layer data has not been affected by the filter

EXPECTED RESULT
All layer data should be affected by filter

SOFTWARE/OS VERSIONS
macOS: 10.14.4, git-master
Qt Version: 5.12.2
Comment 1 Halla Rempt 2019-04-13 11:20:47 UTC
Well, we've gone back and forth on this quite a bit, and we intentionally limit filtering to the image size at this point.
Comment 2 vanyossi 2019-04-14 04:34:56 UTC
Can we add a checkbox in the settings for this? I prefer baking my pixel data when filters become slow.

Probably I should start working on filter vectorization :p
Comment 3 Halla Rempt 2019-04-14 11:24:44 UTC
It's a rather fundamental thing to change, so merely adding a checkbox isn't going to work. Filters themselves are applied using multiple threads, where possible. Vectorization might be a good idea... But have you thought of using a filter mask?
Comment 4 Halla Rempt 2019-04-15 09:36:53 UTC
Let's discuss this at the meeting.
Comment 5 Halla Rempt 2019-04-15 12:42:29 UTC
Okay, let's add an option to the filter dialog.
Comment 6 Dmitry Kazakov 2021-07-27 10:43:54 UTC
*** Bug 409696 has been marked as a duplicate of this bug. ***
Comment 7 Dmitry Kazakov 2021-07-27 10:53:53 UTC
Enabling this option would cause the user to have bugs like that: https://bugs.kde.org/show_bug.cgi?id=438852

Such issues are expected, though they may be not very obvious to the user and are hard to debug.
Comment 8 Dmitry Kazakov 2021-07-27 10:54:38 UTC
I will mark this report as a wishlist, because this is a new feature.