Summary: | Resizing an image by % results in the wrong size | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Earendel <earendel> |
Component: | Resize/Scale Image/Layer | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | Keywords: | triaged |
Version: | 4.4.5 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/eb8cbdc72085539863c7b99a674b6536d95857da | Version Fixed In: | |
Sentry Crash Report: |
Description
Earendel
2021-09-07 12:59:09 UTC
Git commit b058b377aff035d156e13996b4ffa6f29a5bda9f by Mathias Wein. Committed on 08/09/2021 at 20:41. Pushed by mwein into branch 'master'. Fix imprecise dimensions when using image size dialog Due to the way multiple units are handled, the result can be a tiny bit smaller then the true value of e.g. 50% of 2816 px, despite qreal precision. Furthermore, the spinbox will round to nearest integer when you switch back to pixels, so the final value should consistently be rounded instead of truncated for non-pixel input units. M +2 -2 libs/ui/imagesize/dlg_imagesize.cc https://invent.kde.org/graphics/krita/commit/b058b377aff035d156e13996b4ffa6f29a5bda9f Git commit eb8cbdc72085539863c7b99a674b6536d95857da by Mathias Wein. Committed on 08/09/2021 at 20:43. Pushed by mwein into branch 'krita/5.0'. Fix imprecise dimensions when using image size dialog Due to the way multiple units are handled, the result can be a tiny bit smaller then the true value of e.g. 50% of 2816 px, despite qreal precision. Furthermore, the spinbox will round to nearest integer when you switch back to pixels, so the final value should consistently be rounded instead of truncated for non-pixel input units. (cherry picked from commit b058b377aff035d156e13996b4ffa6f29a5bda9f) M +2 -2 libs/ui/imagesize/dlg_imagesize.cc https://invent.kde.org/graphics/krita/commit/eb8cbdc72085539863c7b99a674b6536d95857da |