Bug 504028

Summary: Active/Selected Window screenshot background sometimes becomes opaque when automatically copied to clipboard
Product: [Applications] Spectacle Reporter: Dorin-Andrei Felea <megadorin4>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: minor CC: kde, nate
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of Info Center with a black background. It is supposed to have a transparent background, showing the window's shadow.

Description Dorin-Andrei Felea 2025-05-10 19:30:28 UTC
Created attachment 181148 [details]
Screenshot of Info Center with a black background. It is supposed to have a transparent background, showing the window's shadow.

SUMMARY
Exactly what it says in the title, although it is either seemingly random unless one presses the Copy button afterwards and/or happens after Spectacle is closed.

STEPS TO REPRODUCE
1. Open Spectacle and take an Active/Selected Window screenshot with "Include window titlebar and borders" enabled, "Copy image to clipboard" set in the "After taking a screenshot" dropdown list, and selected PNG in "Image Saving", "Filename" dropdown list.
2. Let it automatically copy the image to clipboard and then paste it somewhere (better results when Spectacle is closed based on my observations)
3. See the issue

OBSERVED RESULT
See the picture.

EXPECTED RESULT
Same picture, but without the fully opaque background.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Kubuntu 25.04 w/ Linux Kernel 6.14.0-15-generic (64-bit)
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Comment 1 Nate Graham 2025-05-13 18:21:12 UTC
Can confirm when pasting into a text field on invent.kde.org on Firefox. The pasted filename ends with .png, so either it's lying about the file format, or somewhere along the way, the transparency got removed.