Bug 453653 - Clone layer with a transform mask will keep shifting on its own
Summary: Clone layer with a transform mask will keep shifting on its own
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Layers/Vector (other bugs)
Version First Reported In: 5.2.2
Platform: Other Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2022-05-11 11:43 UTC by lightcorelt
Modified: 2025-06-29 03:47 UTC (History)
3 users (show)

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


Attachments
Screenshot of the low-quality "preview" generated by the transformation mask (14.49 KB, image/png)
2024-09-11 08:18 UTC, Dmitry Kazakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lightcorelt 2022-05-11 11:43:48 UTC
SUMMARY
Clone layer with a transform mask will keep shifting on its own

STEPS TO REPRODUCE
1. Draw half an image using layers in a folder
2. Create a clone layer of that folder
3. Apply a transform mask to that clone layer
4. Mirror horizontal with the transform mask
5. Switch between layers or draw with the brush where the clone layer appears, doesnt have to leave a mark, its the update of that region that counts.

OBSERVED RESULT
The cloned half keeps shifting to right and left a little, but never settles.

EXPECTED RESULT
Should not move at all when selecting layers, or using the brush

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

ADDITIONAL INFORMATION
Comment 1 Noel 2024-07-01 13:23:59 UTC
I can confirm this issue exists. I tried to do something similar to use clone layers/transforms as a symmetry tool and was pretty disappointed that at how difficult it was to precisely place transforms, and then at the fact that there are rendering issues with them.

I think this may be due to the transform getting rendered at different zoom/subpixel levels that makes it shift around.
Comment 2 Noel 2024-07-01 13:30:06 UTC
You can also reproduce this with paint layers, so it's not a vector layer issue.

The easiest way to reproduce this is to draw an 1px line vertically (e.g. with the pixel art brush), then use -100% horizontal scale to mirror it in a clone, and align it so that both the original line and the clone line overlap perfectly. This means you should still have an 1 px thick line.

If you try to edit the paint layer and move/zoom around, sometimes the mirrored line will stop overlapping so you will get a 2px line in the middle. It seems like it only shifts by 1 pixel at most, but it's still an issue if you're using it for icons and low-resolution graphics.
Comment 3 Dmitry Kazakov 2024-09-11 08:17:13 UTC
Hi, Lightcorelt and Noel!

Does your clone finally updates when after waiting for about 4 seconds? Transform mask works in a way that firstly it shows you a preview of the image (generated in bilinear mode), and after 4 seconds it generates a high-quality transformed image.

Could you also add a video recording of the issue?
Comment 4 Dmitry Kazakov 2024-09-11 08:18:34 UTC
Created attachment 173551 [details]
Screenshot of the low-quality "preview" generated by the transformation mask

Does this screenshot look familiar to what you get in the original bug?
Comment 5 Dmitry Kazakov 2024-09-11 08:19:11 UTC
Changing to waiting-for-info
Comment 6 Bug Janitor Service 2024-09-26 03:47:19 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 lightcorelt 2024-09-26 12:30:49 UTC
(In reply to Dmitry Kazakov from comment #3)
> Hi, Lightcorelt and Noel!
> 
> Does your clone finally updates when after waiting for about 4 seconds?
> Transform mask works in a way that firstly it shows you a preview of the
> image (generated in bilinear mode), and after 4 seconds it generates a
> high-quality transformed image.
> 
> Could you also add a video recording of the issue?

It does seem to update after 4 seconds like you said.
I find that being difficult to work with. I would expect it to be instant like most updates. I wish there was a setting to change the way the transform mask displays, im okay with it using more resources, but id rather have it update much sooner. 4 seconds between brush strokes could be the difference between fluent work and burnout/procrastination.

Im sorry, im not sure how i could add a video. I can record it, and maybe figure out how to compress it, but how do i share it here?
Comment 8 Dmitry Kazakov 2024-09-26 19:18:38 UTC
Hi, lightcorelt!

You can just upload it to google-disk or dropbox and share a link with us :)
Comment 9 Bug Janitor Service 2024-09-27 03:47:44 UTC
๐Ÿ›๐Ÿงน Thanks for your comment!

Automatically switching the status to REPORTED so the team can perform further triage.

In the future you may also do this yourself when providing needed information.
Comment 10 Halla Rempt 2025-05-30 11:07:20 UTC
Setting back to needsinfo. (Also, I cannot reproduce the issue, so in addition to a video, the .kra file would be useful.)
Comment 11 Bug Janitor Service 2025-06-14 03:47:45 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Bug Janitor Service 2025-06-29 03:47:28 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.