Skip to content

fix: Limit OpenCollective contributor image size#124

Merged
aeneasr merged 1 commit into
ory:masterfrom
HeroCC:patch-1
Oct 25, 2021
Merged

fix: Limit OpenCollective contributor image size#124
aeneasr merged 1 commit into
ory:masterfrom
HeroCC:patch-1

Conversation

@HeroCC
Copy link
Copy Markdown
Contributor

@HeroCC HeroCC commented Oct 19, 2021

The OpenCollective individual contributor badge was being dropped by Github Camo for being too large. This PR limits the number of profile pics returned, reducing the size of the image. GitHub Camo seems to limit at 5Mb, and the limited image comes out to a bit over 4.5MB, which should be just enough wiggle room for if someone moves up the rankings or changes profile pictures.

See ory/kratos#1857

@HeroCC HeroCC changed the title Limit OpenCollective contributor image size fix: Limit OpenCollective contributor image size Oct 19, 2021
Copy link
Copy Markdown
Member

@vinckr vinckr left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this!
I could not confirm the 5MB limit, but the file has the correct size, so I would say this is looking good 👍

@aeneasr aeneasr merged commit f413570 into ory:master Oct 25, 2021
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.

3 participants