Created attachment 138920 [details] video showing transform and trim after applying filter SUMMARY When I apply a filter such as Gaussian blur or desaturation right after applying a transformation, The resulting layer has its content clipped or trimmed to the canvas boundary. The data beyond the canvas boundary is lost. STEPS TO REPRODUCE 1. Open Krita and create a new document fill a new paint layer with colour 2. Activate transform tool and transform the layer such that some of it goes beyond the canvas boundary. A perspective transform is most likely to yield the bug. You can also try to transform it while holding Ctrl. 3. Now Immediately trigger a filter such as Desaturate through Keyboard shortcut Ctrl Shift U. Apply the filter. OBSERVED RESULT After applying the filter the resulting layer has its content trimmed to what is visible inside the canvas boundary EXPECTED RESULT Contents outside the canvas boundary should not be trimmed on applying the filter after transformation Tested this with 4.4.3 AppImage and nightly AppImage and even from the version in the repository on Fedora. All yield same result. I am also attaching a video showing the bug I am marking this critical as this deletes data
Also notice that undoing the actions doesn't bring back the trimmed content. I have to undo until the transformation is undone to get back the original layer.
"applying a filter after transformation trims image data to canvas bounds" -> I can confirm this "also noticed undoing the actions doesn't bring back the trimmed content. " -> this is more complicated. There definitely is a problem but you need one more step beyond the filter step for this to be true. ->Do this test to confirm: Action flow A: ============== 1) make a small canvas 20x20 px anything 2) fill it with red/any color 3) use transform tool and make out of canvas data 4) apply a gausian blur filter 5) press ctrl +t to move the blurred layer and confirm that it got trimmed but press "Esc" to not commit the move press ctrl+z now and observe out of bounds data of transform tool present Action flow B: ============= 1) make a small canvas 20x20 px anything 2) fill it with red/any color 3) use transform tool and make out of canvas data 4) apply a gausian blur filter 5) press ctrl +t to move the blurred layer and confirm that it got trimmed but press "Enter" to commit the move (1 more action after filter) press ctrl+z 2 times (before move, before gauss blur) now and observe out of bounds data of transform tool present it is clipped. so your statement is true but not always.
correction for point 5 in "Action flow A" * 5) press ctrl +t to move the blurred layer and confirm that it got trimmed but press "Esc" to not commit the move press ctrl+z now and observe out of bounds data of transform tool . It is present.
Update: On testing further I noticed that there is no need to apply filter after transformation the area outside the canvas is trimmed immediately.
Created attachment 138921 [details] video showing transform and trim after applying filter Attaching another video to show the trimming
After transforming switch to move tool. the trim happens when I switch to other tool immediately after transform.
I can reproduce this bug easily with "warp" but not with the other transform modes e.g. scale, cage transform. So trimming on chaning the tool happens only with "warp" mode.
*changing
sorry i mean with "perspective" transform only this bug of clipping on tool change is present.
The perspective transform can be by means of ctrl key too.
*** This bug has been marked as a duplicate of bug 418406 ***