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

Indicate whether avatar link relation is a gravatar/libravatar type resizable #42

Open
aslakr opened this issue Feb 7, 2024 · 1 comment

Comments

@aslakr
Copy link

aslakr commented Feb 7, 2024

Should the http://webfinger.net/rel/avatar link relation indicate whether the client can get different sizes similar to gravatar/libravatar? Maybe using a sizes attribute with auto?

{
  "rel": "http://webfinger.net/rel/avatar",
  "type": "image/png",
  "sizes": "auto",
  "href": "https://gravatar.com/avatar/84059b07d4be67b806386c0aad8070a23f18836bbaae342275dc0a83414c32ee"
}

and/or if the href contains a gravatar/libravatar size s= or size= parameter:

{
  "rel": "http://webfinger.net/rel/avatar",
  "type": "image/png",
  "href": "https://gravatar.com/avatar/84059b07d4be67b806386c0aad8070a23f18836bbaae342275dc0a83414c32ee?s=256"
}
@pfefferle
Copy link
Member

The http://webfinger.net/rel/avatar link relation only defines the ID for a Link to an Avatar, the attributes are defined by WebFinger: https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4

So you could try to use a property to define the sizes and we could think about a way to discuss/document such extensions, but because this is not part of the spec, I wouldn't put it on the link relations definition page.

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