Skip to content

Restore center-crop to square for profile image resizing when target dimensions are square#3229

Open
Almee98 wants to merge 1 commit into
wevote:developfrom
Almee98:WV-4728
Open

Restore center-crop to square for profile image resizing when target dimensions are square#3229
Almee98 wants to merge 1 commit into
wevote:developfrom
Almee98:WV-4728

Conversation

@Almee98

@Almee98 Almee98 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Restores square cropping for profile photo resizing when the target output size is square (e.g. 200×200, 48×48, 32×32). Rectangular source images are now center-cropped before resize instead of being fit with ImageOps.contain, which preserved aspect ratio and produced non-square output files.

Problem

Profile photos are displayed as squares in the UI, but non-square uploads (e.g. wide rectangular images) were not being converted to square resized versions. This regressed in PR #3052, which replaced the previous crop_to_square logic with ImageOps.contain for all non–Facebook-background images.

Related history

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