Bug 501949 - Spectacle takes a very long time to copy a 4K screenshot to clipboard
Summary: Spectacle takes a very long time to copy a 4K screenshot to clipboard
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.3.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-24 17:45 UTC by fililip
Modified: 2025-06-26 15:44 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fililip 2025-03-24 17:45:41 UTC
SUMMARY
Spectacle takes a very long time to copy a 4K screenshot to clipboard. 1080p screenshots are way faster.

STEPS TO REPRODUCE
1. Set the 'Copy image to clipboard' option ('After taking a screenshot') in Spectacle's general settings
2. Also enable the 'Save file to default folder' checkbox
3. Take a fullscreen screenshot of a 4K desktop

OBSERVED RESULT
The image file is created rather fast in contrast to copying the image to clipboard which creates a huge delay

EXPECTED RESULT
The screenshot is copied reasonably fast to clipboard

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT

ADDITIONAL INFORMATION
I assume this is a limitation of clipboard image handling as opposed to it being purely a Spectacle issue, but there might potentially be a better solution, like copying the image handle to the clipboard (this works with most apps that accept files pasted from clipboard, including browsers). Currently, this option does not exist (only copying the image location is possible).

I am also using 200% display scaling.
Comment 1 madness742 2025-06-26 15:44:04 UTC
I can reproduce this. 

When using a dual monitor setup with 2560x1440 (100% scaling, primary) and 3840x2160 (150% scaling, secondary) it's very slow, but turning off the second monitor and setting the primary monitor to 1280x1024 (100% scaling) it's fast.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 64 GiB of RAM (62,4 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XTX