SUMMARY If you try to annotate a screenshot of a window (which has that semi-transparent border/shadow with it), it replaces it with solid white. STEPS TO REPRODUCE 1. Take a screenshot of a window. 2. Click Annotate 3. Click Annotation Done. OBSERVED RESULT Semi-transparent shadow/border is gone, replaced with solid white EXPECTED RESULT Transparent elements are preserved SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.21.80 (Neon Unstable) KDE Plasma Version: 5.21.80 KDE Frameworks Version: 5.79.0 Qt Version: Neon Unstable up to date ADDITIONAL INFORMATION Transparency appears to be preserved during the annotation editing process. It is only lost when saving.
Created attachment 135568 [details] before annotating
Created attachment 135569 [details] after annotating
Created attachment 135570 [details] transparency appears to be preserved during the actual annotation/editing process
Confirmed.
*** Bug 438215 has been marked as a duplicate of this bug. ***
Not sure if this is our bug, or an upstream bug in KImageAnnotator.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/91
Git commit 741b6fc4f06751caf14a6165c66f0900fd5fd353 by Nate Graham, on behalf of Julius Zint. Committed on 03/11/2021 at 19:20. Pushed by ngraham into branch 'master'. Annotation: set canvas background to transparent The default canvas color is white. So when annotating images with transparency (screen shot of window with a drop shadow), the transparent areas will be white, because the annotation widget uses the canvas color for the image background. FIXED-IN: 21.08.3 M +1 -0 src/Gui/KSWidget.cpp https://invent.kde.org/graphics/spectacle/commit/741b6fc4f06751caf14a6165c66f0900fd5fd353