Bug 483204 - Strange behavior when copy as image and pasting. The pasted image lacks clarity
Summary: Strange behavior when copy as image and pasting. The pasted image lacks clarity
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: qt6
: 483381 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-11 07:36 UTC by firewalker
Modified: 2024-05-08 12:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Video file demonstrating the issue. (2.70 MB, video/mp4)
2024-03-11 07:36 UTC, firewalker
Details
Force font DPI (211.35 KB, image/png)
2024-03-11 09:26 UTC, firewalker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description firewalker 2024-03-11 07:36:05 UTC
Created attachment 166939 [details]
Video file demonstrating the issue.

When copying and pasting as an image, the pasted image is not as clear as the copied area. See the attached video


Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 PRO 4650U with Radeon Graphics
Memory: 14,9 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20UD0010GM
System Version: ThinkPad T14 Gen 1
Comment 1 firewalker 2024-03-11 07:47:17 UTC
It's happens only when in X11. In Wayland it seems to be OK.
Comment 2 firewalker 2024-03-11 09:25:29 UTC
It must be related with the Force font DPI option in System Settings -> Text & Fonts.

If this option is checked both in X11 and in Wayland, the problem occurs.  

Before KDE 6, it was OK.
Comment 3 firewalker 2024-03-11 09:26:08 UTC
Created attachment 166944 [details]
Force font DPI
Comment 4 Albert Astals Cid 2024-03-13 23:06:02 UTC
*** Bug 483381 has been marked as a duplicate of this bug. ***
Comment 5 reescf 2024-03-14 06:53:38 UTC
This looks like a duplicate of my bug, but I don't have force DPI checked in system settings. 

I do have custom settings for display in X11 (which is part of the reason I don't have force DPI set for KDE):

```
Section "OutputClass"
Identifier "cfr eDP-1"
Driver "modesetting"
Option "Monitor-eDP-1" "cfr DPI"
EndSection

Section "Monitor"
Identifier "cfr DPI"
DisplaySize 277 156
EndSection
```

I note that this worked fine prior to KDE6.

The problem also occurs if the image is saved to file rather than pasted.
Comment 6 reescf 2024-05-08 12:26:07 UTC
Do you need any additional information? This bug is not critical, but it is highly annoying and I'd be glad to provide more information if I can.