Skip to content

Conversation

@luc122c
Copy link
Contributor

@luc122c luc122c commented Oct 22, 2025

πŸ”— Linked issue

Fixes #314

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

As mentioned in this comment, GitHub can provide a sized image directly. This means we can bypass IPX. This StackOverflow comment mentions the 'size' parameter, I can't see any use of width/height anywhere.

Since GitHub profile images must be square, we can take the maximum of the width/height and use that as the size parameter. If none is provided, we use GitHub's default of 460.

I'm not sure how the avatars on GHES work, but I've kept the baseUrl override in place just incase.

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautiful πŸ‘Œ

@danielroe danielroe merged commit 50ca332 into nuxt:main Oct 23, 2025
2 checks passed
@favour-chibueze
Copy link

Awesome πŸ‘Œ. Thanks for the PR

@luc122c luc122c deleted the feat/github-image-provider branch October 23, 2025 12:48
@luc122c luc122c mentioned this pull request Oct 25, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken Nuxters Profile Images Due to 502 Error from ipx.nuxt.com

3 participants