Klipper fails to paste big images

(making sure I’m not just doing something wrong before making a (possibly duplicate) bug report)

When I make a rectangular screenshot of a portion of my screen, Klipper doesn’t have any issues letting me paste the resulting image. However, if I make a full-screen-size screenshot (or do a “Capture Entire Desktop“ action), I can’t paste the image, but I can see it appearing in the clipboard history. As a workaround, I can open Klipper (in the system tray or with Meta+V), select any other entry and then back to the screenshot I want to paste, then it pastes it.

Some screenshots of my configuration:

What’s your screen resolution?

My screen resolution is 2560x1440.

I’ve just tried and now it fails with rectangular full-screen-size selection only in 5% of attempts… But with a “Capture Entire Desktop“ action it’s more likely to fail (I’d say 40% of attempts to paste the screenshot fail).

This is not exactly a critical problem, but a very annoying one nevertheless.

1 Like

I can confirm I’m getting this exactly behavior too, I usually screenshot by screenshotting a region with spectacle and then pasting it to wherever I need, if the image is too big (i assume filesize, not physical dimensions as a large screenshot of a single color is typically fine) then when I try to paste into an image editor like Pinta it tells me the clipboard doesn’t contain and image, even though I can see it in the clipboard history, if I try to immediately re-copy this from the history it won’t work
I can also confirm the workaround that I can select another entry, then go back to the ‘too big’ entry and it will copy and paste from there just fine as if there’s no issue at all

2 Likes

Having this exact same issue too, if I make a screenshot too big, the entry appears in the clipboard manager but doesnt paste, and wont paste unless I click a different entry, and then the image entry.

I tried experimenting a bit, seems like the cutoff from where pasting stops/starts working for me is if the image is more or less than 500KiBs, tho it is not always consistent.

Another thing I noticed is that if you paste a non-pastable image into Dolphin, it says the clipboard is empty, but a pastable image will prompt you for a filename, which is what I expect.

image

Logs do not say anything interesting either, and CPU time also does not seem related, file size seems to be the issue.

Feb 16 21:02:51 starry systemd[2251]: Starting Spectacle screenshot capture utility...
Feb 16 21:02:51 starry systemd[2251]: Started Spectacle screenshot capture utility.
Feb 16 21:02:55 starry systemd[2251]: app-org.kde.spectacle.service: Consumed 2.867s CPU time.
Feb 16 21:04:04 starry systemd[2251]: Starting Spectacle screenshot capture utility...
Feb 16 21:04:04 starry systemd[2251]: Started Spectacle screenshot capture utility.
Feb 16 21:04:05 starry systemd[2251]: app-org.kde.spectacle.service: Consumed 2.419s CPU time.
Feb 16 21:04:22 starry systemd[2251]: Starting Spectacle screenshot capture utility...
Feb 16 21:04:22 starry systemd[2251]: Started Spectacle screenshot capture utility.
Feb 16 21:04:27 starry systemd[2251]: app-org.kde.spectacle.service: Consumed 4.090s CPU time.
1 Like