Bug 475893 - Fractionally-scaled screenshots taken by Spectacle are blurry when viewed in Gwenview on Wayland
Summary: Fractionally-scaled screenshots taken by Spectacle are blurry when viewed in ...
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2023-10-20 21:24 UTC by Islem Eddine Bougroura
Modified: 2023-10-26 21:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 24.02
Sentry Crash Report:


Attachments
Full screen screenshot using spectacle. (540.60 KB, image/png)
2023-10-20 21:24 UTC, Islem Eddine Bougroura
Details
Full screen screenshot using spectacle ( 100% scale under wayland ) (1.54 MB, image/png)
2023-10-25 15:25 UTC, Islem Eddine Bougroura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Islem Eddine Bougroura 2023-10-20 21:24:24 UTC
Created attachment 162465 [details]
Full screen screenshot using spectacle.

SUMMARY
Taking a screenshot using Spectacle results in a blurry low resolution image that doesn't match what I'm seeing on the screen, the attached screenshot shows that. I have the screen resolution scaled up to 125%, but the problem appears even in normal scale (100%) or other values (105%, 130%, etc.).

I check this report https://bugs.kde.org/show_bug.cgi?id=409762 , it says its fixed but I still have it on my machines, may be in this case it's a different bug but i don't know.

STEPS TO REPRODUCE
1. Login under a Wayland session
2. Take a screenshot using Spectacle
3. Check the created screenshot

OBSERVED RESULT
blurry low resolution screenshot

EXPECTED RESULT
high quality screenshot that matches the screen scaled resolution

SOFTWARE/OS VERSIONS
Linux: Fedora Linux 38
Kernel Version: 6.5.7-200.fc38.x86_64 (64-bit)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Graphics platform: Wayland

ADDITIONAL INFORMATION
My screen res is 1920*1080 (HP EliteBook 840 G614 inches).
Comment 1 Nate Graham 2023-10-23 22:25:40 UTC
The attached screenshot has a 1920x1080 resolution and looks ever so slightly blurry in the way I would expect a 125% scaled 1080p screen to look. Can you verify that you attached the correct screenshot?

For comparison, can you attach a screenshot taken at 100% scale?

Also, do you have any other screens attached when you're taking these screenshots?
Comment 2 Islem Eddine Bougroura 2023-10-25 15:23:11 UTC
(In reply to Nate Graham from comment #1)
> The attached screenshot has a 1920x1080 resolution and looks ever so
> slightly blurry in the way I would expect a 125% scaled 1080p screen to
> look. Can you verify that you attached the correct screenshot?
> 
> For comparison, can you attach a screenshot taken at 100% scale?
> 
> Also, do you have any other screens attached when you're taking these
> screenshots?

Something weird happened, i logged in under x11, when i opened the screenshot that i shared here, it looked normal ( the way i expected it to look ), when i went back and checked it under wayland, it looked blurry again.

I don't have any other screens attached at all.

i will attach a screenshot taken at 100% scale. i think from my end the same weird thing will happen again.
Comment 3 Islem Eddine Bougroura 2023-10-25 15:25:29 UTC
Created attachment 162564 [details]
Full screen screenshot using spectacle ( 100% scale under wayland )
Comment 4 Islem Eddine Bougroura 2023-10-25 15:44:08 UTC
(In reply to Islem Eddine Bougroura from comment #2)
This is what i observed from opening the same screenshot in both 100% and 125% scaled under x11 and wayland:

x11 ( 100% ): picture looks normal
x11 ( 125% ): picture looks normal

wayland ( 100% ): picture looks normal
wayalnd ( 125% ): picture looks blurry

in all 4 cases i opened the pictures using gwenview, i used another image viewer (geeqie) and the screenshot looked normal, i guess the problem has to be related to gwenview or my screen, Im still not sure, i think this thread should be closed or changed to gwenview. The screenshots taken by Spectacle are ok and other people see them the way they are indented to be and that's what matters for me. Sorry for any inconvenience i caused.
Comment 5 Nate Graham 2023-10-26 21:11:45 UTC
It does sound like there's an issue in Gwenview. ...or was; I used my built-from-source version of Gwenview on Plasma 6 to view the screenshot and didn't see the issue, which means it seems to be fixed in the next version!