<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 26. aug. 2011, at 20:33, Allen Tom wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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.</blockquote><div><br></div><div>I agree, I did not intend to suggest providing size preferences using the Accept header (I don't think there even is a standard for that).</div><div><br></div><div>Instead I was thinking of the image format (png versus gif versus svg). In that case, I would say it does not matter that you cannot set the header using javascript, as the user agent probably will send the 'correct' format preferences anyway. in example a web browser without support for svg would not include it in the accept header. It may be unnccessary to mention this at all, since it is mentioned in the HTTP spec, but it could be mentioned that using the HTTP mechanisms for that wouldbe the reccomended approach (over proprietary query string parameters, or separate urls).</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><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></span></blockquote><br></div><div>I agree, it seems much more reasonable to indicate a preferred image size in the request, rather than try to standardize what is medium and large.</div><div><br></div><div>I think it needs to be optional for the provider to adhere to the requested size, but strongly reccomended if the provider supports multiple sizes.</div><div><br></div><div>We could in example include one 'size' parameter and define it to:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- return an image which is preferrably as shallow as possible, but at least $size pixels wide, if possible.</div><div><br></div><div>or </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- return an image which is as close to $size pixels wide as possible.</div><div><br></div><div><br></div><div>I think it would be easiest to ignore mentioning height or aspect ratio - what do you think?</div><div><br></div><div>Andreas</div><div><br></div><div><br></div></body></html>