Bug 498731 - file previews can't handle fractional scaling on Wayland
Summary: file previews can't handle fractional scaling on Wayland
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (other bugs)
Version First Reported In: 24.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-16 10:41 UTC by Ilia Kats
Modified: 2025-01-25 17:26 UTC (History)
4 users (show)

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


Attachments
screenshot (149.13 KB, image/png)
2025-01-16 10:41 UTC, Ilia Kats
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilia Kats 2025-01-16 10:41:19 UTC
Created attachment 177400 [details]
screenshot

I'm using Wayland and have fractional scaling enabled (screen 0: 150%, screen 1: 130%). File previews in tooltips look blurry, while file previews in the information panel are sharp, but cropped (see attached screenshot). This can be observed on text and image files, I haven't tested other file types. 

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Comment 1 Nate Graham 2025-01-16 18:33:39 UTC
Hmm, with current git master, this looks fine to me at 175% scale for previews of text files and images in both the Information Panel's preview as well as the hover thumbnail.
Comment 2 madonuko 2025-01-18 13:21:32 UTC
I can reproduce both issues with dolphin 24.12.0. Compiled 7f12389a9553fab558e09e8845aebb26e8a7d9eb and 961e6270e4401a6c7512df3a2e3efd09a25df962 and both commits do not come with tooltips and the information panel. Fedora 41 Plasma 6.2.5 kf 6.9.0
Comment 3 Akseli Lahtinen 2025-01-22 15:50:59 UTC
I am also unable to reproduce this

dolphin 25.03.70
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 4 madonuko 2025-01-22 17:19:31 UTC
(In reply to madonuko from comment #2)
> I can reproduce both issues with dolphin 24.12.0. Compiled
> 7f12389a9553fab558e09e8845aebb26e8a7d9eb and
> 961e6270e4401a6c7512df3a2e3efd09a25df962 and both commits do not come with
> tooltips and the information panel. Fedora 41 Plasma 6.2.5 kf 6.9.0

Update: I took some time to do some git bisect and figured out I had to revert 77fc43d to enable the information panel.

Tested on 5667fc9 (currently HEAD of master), the bug seems to be fixed: e.g. jpg/png images, text files, etc. are rendered correctly (but obviously the tooltips are now double in size probably due to 741abb8)

PDFs and LibreOffice documents are still rendered in a pretty janky way (e.g. text looks pixelated, zig-zags, I don't think the width of the lines in the glphys are correct) but I kind of doubt whether it's an issue with dolphin itself.

I don't think 741abb8 is a great idea overall — but I guess that does fix the issue itself
Comment 5 Ilia Kats 2025-01-25 17:26:48 UTC
Can confirm, both issues are fixed on master. I guess this can be closed then.