Skip to content

fix(desktop): crop and downscale agent avatar uploads - #3685

Open
BradGroux wants to merge 1 commit into
block:mainfrom
BradGroux:agent/agent-avatar-processing
Open

fix(desktop): crop and downscale agent avatar uploads#3685
BradGroux wants to merge 1 commit into
block:mainfrom
BradGroux:agent/agent-avatar-processing

Conversation

@BradGroux

Copy link
Copy Markdown

Summary

  • Move the existing 128px center-crop/downscale helper to shared profile code.
  • Make image processing the default for the shared agent/community avatar picker, so agent uploads get the same framing and size treatment community icons already receive.
  • Keep WebP encoding with PNG fallback and close decoded bitmaps on success or failure.

Related issue

Fixes #3662

Duplicate search: no overlapping open or closed pull request found before implementation or publication.

Testing

  • pnpm --dir desktop check
  • pnpm --dir desktop typecheck
  • pnpm --dir desktop test — 3,784 passed
  • pnpm --dir desktop build
  • just ci — all workspace, Desktop, web, Tauri, and analysis gates pass; the final mobile suite is blocked by the reproducible current-main failure ChannelDetailPage keeps follow mode off while a tall newest message stays visible at mobile/test/features/channels/channel_detail_page_test.dart:1042.
  • Isolated mobile rerun reproduces the same failure against untouched mobile sources.
  • Screenshot: not applicable; this changes the image upload pipeline without changing the rendered control layout.

Co-authored-by: Brad Groux <bradgroux@hotmail.com>
Signed-off-by: Brad Groux <bradgroux@hotmail.com>
Signed-off-by: Brad Groux <3053586+BradGroux@users.noreply.github.com>
@BradGroux
BradGroux requested a review from a team as a code owner July 30, 2026 04:39
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.

[Bug] Agent avatar upload skips the crop/downscale that community icons already get

1 participant