webfinger / webfinger.net

webfinger.net website
https://webfinger.net/
83 stars 15 forks source link

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

Open aslakr opened 9 months ago

aslakr commented 9 months ago

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 commented 7 months ago

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.