Created attachment 180973 [details] Screenshot taken at 100% scaling. SUMMARY When trying to save a screenshot of a selection with fractional scaling, the output is very blurry. STEPS TO REPRODUCE 1. Set monitor to 125% scaling (Desktop -> Right Click -> Display Configuration). 2. Open Kate and browse to any document. 3. Select 1 or more lines 4. Right click and select "Take Screenshot of Selection". 5. Click on "copy". 6. Open Dolphin and paste the file. Due to bug 503821 directly saving it doesn't work. You need to copy/paste the screenshot. OBSERVED RESULT The screenshot is much blurrier when fractional scaling is enabled. EXPECTED RESULT Image quality similar to screenshots taken at 100% scaling. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora Linux 42 KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.13.0 Qt Version: 6.9.0 ADDITIONAL INFORMATION - Launching Kate with `QT_SCALE_FACTOR_ROUNDING_POLICY=Ceil` drastically improves the image quality.
Created attachment 180974 [details] Screenshot (popup) taken at 100% scaling.
Created attachment 180975 [details] Screenshot taken at 125% scaling.
Created attachment 180976 [details] Screenshot (popup) taken at 125% scaling.
Git commit d5ef4a26cf5be5a0a0a22782db54e5627e8857d8 by Waqar Ahmed. Committed on 06/05/2025 at 05:20. Pushed by waqar into branch 'master'. Fix screenshot for hidpi displays M +3 -1 src/view/screenshotdialog.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/d5ef4a26cf5be5a0a0a22782db54e5627e8857d8
Thank you for the quick fix. I compiled it using `kde-builder` and noticed that text looks much better now, but it also adds quite a bit of white space to the screenshot.
Created attachment 180981 [details] Showcase of the white space after the latest fix.