Support JPEG encoding of alpha images on GTK by kattni · Pull Request #4798 · beeware/toga · GitHub
Skip to content

Support JPEG encoding of alpha images on GTK - #4798

Open
kattni wants to merge 2 commits into
beeware:mainfrom
kattni:codex/gtk4-images
Open

kattni wants to merge 2 commits into
beeware:mainfrom
kattni:codex/gtk4-images

Conversation

@kattni

@kattni kattni commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Convert GTK images with an alpha channel to RGB before JPEG encoding. Newer GdkPixbuf/Glycin encoders reject RGBA input for JPEG; the conversion preserves RGB values and leaves the source image unchanged. The image-save test now exercises both RGB and RGBA sources.

Found while validating the GTK4 migration in #3069.

Validation: 9 image testbed tests passed on GTK3, GTK4, GTK4/libadwaita, and macOS. Pre-commit, docs lint, and core/Travertino tests passed with 100% coverage.

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool

Assisted-by: OpenAI Codex (GPT-6)

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.

1 participant