Hi Andres,<div><br></div><div>I think it is important that the user's profile picture be available in multiple sizes, so I'm glad that the WG is considering this.</div><div><br></div><div>I don't think that clients should specify the size using the Accept HTTP header, since some clients (like javascript clients) may not be able to easily set the header. It looks like Gravatar, Twitter, and Facebook all use the technique of specifying a base image URL, with an optional size parameter. This sounds like a reasonable approach.</div>
<div><br></div><div>Gravatar </div><div>(default: 80x80) <a href="http://www.gravatar.com/avatar/2c421806d83cb83b2981933e8efa6e8e">http://www.gravatar.com/avatar/2c421806d83cb83b2981933e8efa6e8e</a></div><div>(arbitary size - always square format though) <a href="http://www.gravatar.com/avatar/2c421806d83cb83b2981933e8efa6e8e?s=250">http://www.gravatar.com/avatar/2c421806d83cb83b2981933e8efa6e8e?s=250</a></div>
<div><br></div><div>Twitter</div><div><a href="http://api.twitter.com/1/users/profile_image?screen_name=atom">http://api.twitter.com/1/users/profile_image?screen_name=atom</a></div><div><a href="http://api.twitter.com/1/users/profile_image?screen_name=atom&size=original">http://api.twitter.com/1/users/profile_image?screen_name=atom&size=original</a></div>
<div><br></div><div>Facebook</div><div><a href="https://graph.facebook.com/allentom/picture">https://graph.facebook.com/allentom/picture</a></div><div><a href="https://graph.facebook.com/allentom/picture?type=large">https://graph.facebook.com/allentom/picture?type=large</a></div>
<div><br></div><div>I had proposed that the OpenID Connect profile picture be returned using a base URL. The default size can be left undefined, but clients are able to optionally specify the desired size using an optional parameter. In order to avoid having to specify what "small/medium/large/x-large" means, we can do something like gravitar and let the client specify the size in pixels.</div>
<div><br></div><div>Allen</div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">2011/8/26 Andreas Åkre Solberg <span dir="ltr"><<a href="mailto:andreas.solberg@uninett.no">andreas.solberg@uninett.no</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div class="im"><br><div><div>On 26. aug.2011, at 03:19, Edmund Jay wrote:</div><br>
<blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-family:tahoma, 'new york', times, serif;font-size:13px">John offered the following options:<br>
a) new scope for requesting picture sizes<br>b) RP makes explicit claim request<br>c) Expand schema to include "small", "medium", and "large"<br></span></span></blockquote></div><br></div><div>
BTW, here is how gravatar is doing this:</div><div><br></div><div><span style="white-space:pre-wrap"> <a href="http://en.gravatar.com/site/implement/images/#size" target="_blank">http://en.gravatar.com/site/implement/images/#size</a></span></div>
<div><br></div><div>(I'm not saying that I neccessary like it, I just include it as an example).</div><div><br></div><div>A related topic, is content type negotiation. Would it be an idea to suggest to use 'Accept' header as the reccomended way of negotiating which image format that is presented?</div>
<div><br></div><div><div> Accept: image/gif;q=0.5, image/jpeg;q=0.8, image/png;q=0.9, image/svg+xml;q=1.0</div><div><br></div><div>I would propose that if we say anything about accept parameters and/or size parameters, it would just be reccomendations to providers that would like to offer multiple formats and sizes; and not a requirement.</div>
<div><br></div><font color="#888888"><div>Andreas</div><div><br></div></font></div></div><br>_______________________________________________<br>
Openid-specs-ab mailing list<br>
<a href="mailto:Openid-specs-ab@lists.openid.net">Openid-specs-ab@lists.openid.net</a><br>
<a href="http://lists.openid.net/mailman/listinfo/openid-specs-ab" target="_blank">http://lists.openid.net/mailman/listinfo/openid-specs-ab</a><br>
<br></blockquote></div><br></div>