Skip to content

fix: preserve PNG transparency in chat wallpapers#367

Open
pratikpatel8982 wants to merge 1 commit into
AyuGram:devfrom
pratikpatel8982:dev
Open

fix: preserve PNG transparency in chat wallpapers#367
pratikpatel8982 wants to merge 1 commit into
AyuGram:devfrom
pratikpatel8982:dev

Conversation

@pratikpatel8982

@pratikpatel8982 pratikpatel8982 commented May 15, 2026

Copy link
Copy Markdown

Respect the user's chosen image as-is without forcing opacity, which naturally enables transparent chat background support.

closes #361

Upstream PR: telegramdesktop#30698

@pratikpatel8982 pratikpatel8982 marked this pull request as draft May 15, 2026 12:42
Remove .forceOpaque = true from ChooseFromFile in settings_chat.cpp and BackgroundBox::chooseFromFile in background_box.cpp, which was compositing transparent pixels against white via Opaque() for all non-JPEG files before the image reached the wallpaper pipeline.
@pratikpatel8982 pratikpatel8982 marked this pull request as ready for review May 15, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transparent background

1 participant