Bug 483204

Summary: Strange behavior when copy as image and pasting. The pasted image lacks clarity
Product: [Applications] okular Reporter: firewalker <firew4lker>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: reescf
Priority: NOR Keywords: qt6
Version: 24.02.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Video file demonstrating the issue.
Force font DPI

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.