SUMMARY: I was trying to figure out why Spectacle is getting blurred screenshots and discovered an interesting problem, and now Spectacle is not guilty. Apparently, KWin has some rounding-related issues when it creates an image from the surface (window). It seems that when the window position can't be divided by the scale factor into an integer value, KWin returns a little bit blurred screenshot, which Spectacle saves as it comes. Maybe it also depends on the window size, but I'm not sure. STEPS TO REPRODUCE: 1. Set the scale factor to 1.5. 2. Open some window, for example Konsole. 3. Put it at the 0x0 coordinates (top-left corner). Also, for just in case, ensure that the current window size can be divided by 1.5 without problems. 4. Take a screenshot and save it as a file. 5. Then move this window to somewhere to achieve an XY value that can't be divided by 1.5. 6. Take another screenshot and save it as a file. 7. Open it in GIMP and compare font glyphs. OBSERVED RESULT The screenshot is blurred EXPECTED RESULT Crystal clear screenshot whatever coordinates it was SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.8.1-zen1-1-zen (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 9 7940HS w/ Radeon 780M Graphics Memory: 28,2 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: Micro Computer (HK) Tech Limited Product Name: Venus series
Created attachment 167392 [details] Clear screenshot
Created attachment 167393 [details] Blurred screenshot
Created attachment 167394 [details] Zoom comparison
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5516
I can duplicate this on Neon 6.0.2 Wayland with the instructions provided. Thanks.
Noah, is this different from Bug 478426?
(In reply to Nate Graham from comment #6) > Noah, is this different from Bug 478426? yes
This is fixed with the commits in https://invent.kde.org/plasma/kwin/-/merge_requests/5516, authored by Volodymyr Zolotopupov. They'll appear in Plasma 6.0.5
Yep, that's me :) Thanks for the merge!
My screenshots taken on the external display are still blurry, am I missing the correct version containing the fix? Thanks Operating System: openSUSE Tumbleweed 20240714 KDE Plasma Version: 6.1.2 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.9.9-1-default (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics Memory: 30.7 GiB of RAM Graphics Processor: AMD Radeon 780M Manufacturer: Framework Product Name: Laptop 13 (AMD Ryzen 7040Series) System Version: A7
Are you talking about a full screen collage? This issue is about a blurry window or rectangular screenshot.
(In reply to zvova7890 from comment #11) > Are you talking about a full screen collage? > > This issue is about a blurry window or rectangular screenshot. I'm talking of a rectangular region indeed. Attaching photo from phone VS captured by spectacle.
Created attachment 171674 [details] photo from phone
Created attachment 171675 [details] blurry from spectacle
Created attachment 171676 [details] less blurry from spectacle (if window moved to laptop display and region captured there)
Just to be clear: are you comparing the results by viewing them in Spectacle? Is the saved result equally blurry?
(In reply to zvova7890 from comment #16) > Just to be clear: are you comparing the results by viewing them in > Spectacle? Is the saved result equally blurry? Hi, no the "blurry from spectacle" is captured with spectacle and then opened in gwenview. On my laptop it shows blurry (I dunno if it's a problem with gwenview, I hope you see it blurry as well)
Created attachment 171691 [details] screen recording
The image is also bigger than the actual content. Although gwenview confirms it's displaying it at 100%, you can clearly see that the text in the captured screenshot has not the original size. My screen configuration: laptop display 2256x1504@120% external monitor 2560x1440@100% -> this is where the capture happens
Now I see. It is a problem with rectangular screenshots in multiscreen systems with different output scale. The windowed screenshots are just fine. It is a separate issue. While this issue is about screenshot clarity depending on the window's(or rectangle) position and size. Please file another issue. It seems Spectacle is taking a composited image from all screens, regardless of whether it is making a rectangle for only one screen or if the rectangle joins several screens. The selected part is then cropped from this composited image, which is blurred under Wayland.
(In reply to zvova7890 from comment #20) > Now I see. It is a problem with rectangular screenshots in multiscreen > systems with different output scale. The windowed screenshots are just fine. > It is a separate issue. While this issue is about screenshot clarity > depending on the window's(or rectangle) position and size. Please file > another issue. > > It seems Spectacle is taking a composited image from all screens, regardless > of whether it is making a rectangle for only one screen or if the rectangle > joins several screens. The selected part is then cropped from this > composited image, which is blurred under Wayland. Hi, and thanks. I followed your advice and filed it as bug 490353