Skip to content

Show X members' profile photos sharp - #610

Merged
ericzakariasson merged 1 commit into
mainfrom
sharp-x-profile-photos
Dec 1, 2026
Merged

ericzakariasson merged 1 commit into
mainfrom
sharp-x-profile-photos

Conversation

@ericzakariasson

Copy link
Copy Markdown
Member

Summary

A member who signs in with X gets X's 48px thumbnail as their photo. Their profile draws it at up to 96px and the profile's share image at 140px, so it looks soft in both.

The same photo at 400px is one suffix away on X's image host. The profile and the share image now ask for that size. The Grok Bot Directory already does this.

  • Members without a photo on X get X's own picture at 400px too.
  • Photos from GitHub, Google and uploads are untouched.
  • The small avatars keep the thumbnail: member cards at 40px and the menu at 24px.

219 of the 540 newest public members have an X photo.

Testing

  • bunx biome ci . and bun run typecheck in apps/cursor pass.
  • The helper was checked against thumbnails in each size X hands out, photos already at full size, photos from other hosts, and a look-alike host.
  • Run locally on a temporary page: the profile photo component loads the 400×400 file instead of the 48×48 one, for an X photo and for X's own picture. A GitHub photo and a member without a picture are unchanged.
  • Preview build, which reads the live data: the share image of a member with an X photo is sharp where the live one is soft. A member with X's own picture renders too.
  • Not viewed: a real profile page on the preview, which is behind company sign-in. The photo component was viewed locally on its own.

X hands out a profile photo as a 48px thumbnail, and that is what a
sign-in with X saves. A member's profile draws it at up to 96px and the
profile's share image at 140px, so it looked soft in both.

The same photo at 400px is one suffix away. The profile and the share
image now ask for that one, as the Grok Bot Directory already does.
Members without a photo on X get X's own picture at 400px too. Photos
from GitHub, Google and uploads are untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ericzakariasson
ericzakariasson merged commit 2382056 into main Dec 1, 2026
1 check passed
@ericzakariasson
ericzakariasson deleted the sharp-x-profile-photos branch December 1, 2026 18:36
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