Summary: | Image previews scaled incorrectly on hidpi | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Alex Merry <alex.merry> |
Component: | ImageEditor-Canvas | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, metzpinguin, styleling |
Priority: | NOR | ||
Version: | 6.3.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kde/digikam/commit/deaebf4a60780c01d8c0f5e320db3bb0488526be | Version Fixed In: | 6.4.0 |
Sentry Crash Report: | |||
Attachments: |
Image with no tool open
Image in "before" state Image in "after" state |
Description
Alex Merry
2019-09-19 20:37:22 UTC
Created attachment 122738 [details]
Image with no tool open
Created attachment 122739 [details]
Image in "before" state
Created attachment 122740 [details]
Image in "after" state
All screenshots scaled to 50% to keep the file size down
If I get the time, I will attempt to figure out the code and submit a patch, but I thought a bug report would be useful to have in case other people are experiencing the same issue. You use the white balance plugin where the code is located here and it use ImageRegionWidget to render the canvas : https://invent.kde.org/kde/digikam/blob/master/core/dplugins/editor/colors/whitebalance/whitebalancetool.cpp#L93 Code from this widget is common to plenty of Editor tools. Code is here : https://invent.kde.org/kde/digikam/blob/master/core/utilities/imageeditor/widgets/imageregionwidget.cpp#L82 It's based on Qt GraphicView and use this item implementation to render contents on the canvas with paint() and paintExtraData() : https://invent.kde.org/kde/digikam/blob/master/core/utilities/imageeditor/widgets/imageregionitem.cpp#L111 https://invent.kde.org/kde/digikam/blob/master/core/utilities/imageeditor/widgets/imageregionitem.cpp#L188 This last method draw the preview modes "before/after/mouse-over"... Gilles Caulier Git commit deaebf4a60780c01d8c0f5e320db3bb0488526be by Maik Qualmann. Committed on 20/09/2019 at 10:45. Pushed by mqualmann into branch 'master'. fix use correct zoom value dependent on device pixel ratio FIXED-IN: 6.4.0 M +2 -1 NEWS M +5 -0 core/libs/widgets/graphicsview/imagezoomsettings.cpp M +3 -0 core/libs/widgets/graphicsview/imagezoomsettings.h M +10 -0 core/libs/widgets/graphicsview/previewlayout.cpp M +1 -0 core/libs/widgets/graphicsview/previewlayout.h M +8 -6 core/utilities/imageeditor/widgets/canvas.cpp M +1 -1 core/utilities/imageeditor/widgets/imageregionwidget.cpp https://invent.kde.org/kde/digikam/commit/deaebf4a60780c01d8c0f5e320db3bb0488526be There are a few small things where we need to use the real zoom factor, I fix it tonight. Maik Git commit 38c1209c7fcce424d843f3508db6bc8cc39f08a8 by Maik Qualmann. Committed on 20/09/2019 at 17:20. Pushed by mqualmann into branch 'master'. fix get capture points M +2 -2 core/utilities/imageeditor/widgets/imageregionitem.cpp M +2 -2 core/utilities/imageeditor/widgets/imageregionwidget.cpp https://invent.kde.org/kde/digikam/commit/38c1209c7fcce424d843f3508db6bc8cc39f08a8 *** Bug 412920 has been marked as a duplicate of this bug. *** |