Bug 408215 - Preview of icon themes is blurry when fractional display scaling is used
Summary: Preview of icon themes is blurry when fractional display scaling is used
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_icons (show other bugs)
Version: 5.27.5
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-02 14:40 UTC by Patrick Silva
Modified: 2023-08-06 16:36 UTC (History)
4 users (show)

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


Attachments
screenshot (313.52 KB, image/png)
2019-06-02 14:40 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-06-02 14:40:26 UTC
Created attachment 120502 [details]
screenshot

STEPS TO REPRODUCE
1. open system settings > display and monitor > click "Scale display" button and set display scale factor to 1.2 
2. relogin
3. open system settings > icons

OBSERVED RESULT
As we can see in the attached screenshot, preview of the icon themes is blurry

EXPECTED RESULT
preview of the icon themes looks crisp

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.15.90
KDE Frameworks Version: 5.58.0
Qt Version: 5.13 beta4
Comment 1 David Edmundson 2019-10-12 13:51:44 UTC
Can't reproduce, can you retest with new plasma and reopen if needed.
Comment 2 Patrick Silva 2019-10-22 21:18:57 UTC
This issue persists only on X11 session.

Operating System: Arch Linux 
KDE Plasma Version: 5.17.1
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Comment 3 Nate Graham 2020-01-15 19:17:28 UTC
Can reproduce on X11, but it's subtle. I wonder if there's anything we can really do here. Anything that's pixel-perfect at an integer scale factor is bound to be blurry when using fractional scaling.
Comment 4 Claudius Ellsel 2020-08-10 11:14:18 UTC
Is it only the preview that looks blurry, or also after applying? If it is only the preview, I guess there should be something that can be done about it.

Also, a bit off topic: What is the reason, why scaling leads to blurry things? I don't exactly understand that. If one scales images with image editing software, I never noticed such behavior. So I wonder whether it is just me not noticing it or whether there are better ways to do this (different algorithms maybe).
Comment 5 Nate Graham 2020-08-10 13:29:36 UTC
Photographs are much less sensitive to upscaling/downscaling blurriness because of the nature of what's being phorographed. By contrast, the effect is noticeable even with excellent scaling algorithms for graphics which are designed to be pixel-perfect--for example those which make heavy use of single-pixel lines. There is on algorithm I'm aware of that can make a single-pixel line that perfectly falls on physical pixels look good when scaled 1.5x, because there aren't fractional pixels. There may be fractional sub-pixels, but those cannot be used in the same way.
Comment 6 Claudius Ellsel 2020-08-10 14:43:19 UTC
Alright. Just did a short testing and you are right. I guess I never used scaling in a way where it was noticeable.

Testing different algorithms with GIMP, there is a noticeable difference between them. Not sure what algorithm is used by KDE to scale, though.

I created some examples with comparison of different algorithms for this, since this is offtopic, maybe I can attach them to a different bug report.
Comment 7 Claudius Ellsel 2020-08-10 14:53:59 UTC
Done - see https://bugs.kde.org/show_bug.cgi?id=425190
Comment 8 Claudius Ellsel 2020-08-11 16:15:52 UTC
(In reply to Nate Graham from comment #3)
> Can reproduce on X11, but it's subtle. I wonder if there's anything we can
> really do here. Anything that's pixel-perfect at an integer scale factor is
> bound to be blurry when using fractional scaling.

From the experiments conducted in the bug report I linked above, it seems like not all scaled images need to look blurred. So if that should be the underlying problem, that can be improved.
Comment 9 Patrick Silva 2022-09-18 17:12:15 UTC
Can reproduce with display scale 125%.

Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: X11