Summary: | inaccurate Layer -> Transform -> Offset when canvas size is 2048x2048. I input X:64px offset to a 64x64 content, it made 63px offset instead of 64px. When input is X:65px, it made 65px offset. There is no way to make accurate 64px offset. | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | bryanlonghin |
Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | ||
Version: | 4.1.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://commits.kde.org/krita/ff20df4ed7216b062a745e07cd826d6b6c35d440 | Version Fixed In: | |
Attachments: | This is a youtube video link which reproduces the described bug |
Setting to normal: critical is for dataloss. I've tried to reproduce, but if I enter an offset of 64, 64 in the offset dialog, I don't see the pixel mismatch. Your video goes a bit too fast for me to really see what you entered in that dialog, though. (In reply to Boudewijn Rempt from comment #1) > Setting to normal: critical is for dataloss. I've tried to reproduce, but if > I enter an offset of 64, 64 in the offset dialog, I don't see the pixel > mismatch. Your video goes a bit too fast for me to really see what you > entered in that dialog, though. This bug doesn't exist when I use a smaller canvas size, but when canvas size is 2048x2048, this bug occurs. I chose this canvas size using the texture template instead of custom document (don't know if this is useful information). I put 64px on X and 0px on Y in the dialog. Ok, sorry I didn't tell you how I made my canvas size. I tested this bug again with canvas size 2048x2048 created by custom document and this bug did not occur. This bug is associated with texture template. Ah... That explains why I couldn't reproduce it. Let me try again. Yes, with this template, I can reproduce the issue. It is a matter of the ppi, it seems. If I create a new image with 100 dpi, like the template, the offset happens. If it's 300 dpi, as is the default, it doesn't. So there must be some rounding error. oh, then I will use custom document from now on. Git commit c10d7c836d07618cc8149a813acb70e55a837c6e by Boudewijn Rempt. Committed on 07/08/2018 at 09:27. Pushed by rempt into branch 'master'. Fix the offset dialog giving inaccurate offsets When assinging a double to an int, round it, don't just assign it. M +2 -2 plugins/extensions/offsetimage/dlg_offsetimage.cpp M +3 -3 plugins/extensions/offsetimage/dlg_offsetimage.h https://commits.kde.org/krita/c10d7c836d07618cc8149a813acb70e55a837c6e Git commit ff20df4ed7216b062a745e07cd826d6b6c35d440 by Boudewijn Rempt. Committed on 11/08/2018 at 15:24. Pushed by rempt into branch 'krita/4.1'. Fix the offset dialog giving inaccurate offsets When assinging a double to an int, round it, don't just assign it. M +2 -2 plugins/extensions/offsetimage/dlg_offsetimage.cpp M +3 -3 plugins/extensions/offsetimage/dlg_offsetimage.h https://commits.kde.org/krita/ff20df4ed7216b062a745e07cd826d6b6c35d440 |
Created attachment 114337 [details] This is a youtube video link which reproduces the described bug To reproduce this bug. Follow the steps done in the attached youtube video. For smaller canvas size, it works. However, for 2048x2048, it has this problem.