Repository navigation
Conversation
Assisted-by: Grok Bot
mrjoshuap
marked this pull request as ready for review
December 6, 2026 03:10
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #1616.
User logos and channel banners are no longer re-encoded as JPEG on upload. A PNG with a transparent background stays a PNG, so the transparent areas are no longer filled with white — which was especially noticeable for circular logos in dark mode. The existing 200×200 logo and 900×200 banner resize still runs. JPEG uploads still work and are stored as PNG after that resize. Logos and banners already on disk are left unchanged until they are uploaded again.
SVG logos are still not accepted, because the image pipeline cannot rasterize them.
Tests:
tests/users/test_users_models.py,tests/forms/test_edit_profile_form.py,tests/users/test_users_api.py, andtests/users/test_users_pages.py.AI assistance disclosure
AI agents working in this repo are expected to follow AGENTS.md.
Tool(s) and what they did:
Grok Bot drafted the code, tests, and this description.
Attestation
Checklist
Steps
Pre-deploy
None. No migrations.
Post-deploy
Upload a PNG logo with a transparent background and confirm the transparency is kept on the profile page, including in dark mode. A JPEG logo should still upload. Logos already stored should be unchanged until they are re-uploaded.
AI disclosure: drafted by an AI agent (Grok Bot) for @mrjoshuap.