Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avatar image endpoint should support low resolution? #183

Open
debuggingfuture opened this issue Oct 1, 2024 · 1 comment
Open

avatar image endpoint should support low resolution? #183

debuggingfuture opened this issue Oct 1, 2024 · 1 comment

Comments

@debuggingfuture
Copy link

At https://ethfollow.xyz/ the social graph widget fire multiple requests for avatar

image

I realize one request reached 4.9MB
https://metadata.ens.domains/mainnet/avatar/anett.eth

image

As there is already implementation for [NFT image] (https://metadata.ens.domains/docs#/paths/~1%7BnetworkName%7D~1%7BcontractAddress(0x%5Ba-fA-F0-9%5D%7B40%7D)%7D~1%7BtokenId%7D~1rasterize/get) to handle low resolution, should that be extended to avatar image endpoint too? (If we do not want to point to a ipfs gateway with such feature)

@mdtanrikulu
Copy link
Contributor

The metadata service does not alter the images other than sanitization if / when needed. The images can vary from vector to bitmap, with different sizes and ratios. One way to deal with maybe caching and resizing the image on your end, with an intermediate service instead of consuming as a direct source.

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

No branches or pull requests

2 participants