https://bugs.kde.org/show_bug.cgi?id=434941

--- Comment #5 from Vikram Rao <[email protected]> ---
The persistent "shadow can't be disabled / shadow renders as black box" reports
on this bug are caused by kquickimageeditor's annotation engine (added in
commit a9c8c6a, June 2025) calling shadow.convertTo(QImage::Format_Alpha8) in
src/annotations/utils.h::shapeShadow(). On Qt 6 + Wayland,
QPainter::drawImage() of an Alpha8 image renders opaque instead of
alpha-modulated black, so the blurred shape becomes a solid-black rectangle the
size of the visualRect.

Reproducible on Plasma 6.6.4 / Ubuntu 26.04 / Wayland session. Disabling Shadow
per-tool removes the symptom, confirming the toggle wiring is correct but the
rendered shadow is the bug.

Patch (replace the Alpha8 conversion with an explicit ARGB32_Premultiplied
black-fill masked by CompositionMode_DestinationIn) verified to fix the issue
locally:

GitHub PR (mirror): https://github.com/KDE/kquickimageeditor/pull/1
Patch branch:
https://github.com/VkramRao/kquickimageeditor/tree/shadow-alpha8-wayland-fix
Will re-submit on invent.kde.org once I have a KDE Identity account.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to