From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Thu, 9 Jan 2014 16:19:26 +0100 Subject: [RESEND PATCH 1/1] enable cgit to show gravatar for author, committer and tagger In-Reply-To: <20140109101830.006cb15d@leda.localdomain> References: <1389192811-31573-1-git-send-email-mail@eworm.de> <20140108171507.GA4876@dcvr.yhbt.net> <20140109101830.006cb15d@leda.localdomain> Message-ID: On Thu, Jan 9, 2014 at 10:18 AM, Christian Hesse wrote: > You modified the code to make the icon match the font size, which is 10pt by > default. This is hard coded to the css file. Please note the URL includes a > size argument. Does it make sense to just retrieve a 10x10 pixel image? Generally, 10pt is actually 13px, not 10px. I did see the size argument of the URL, and played with changing this. But I was thinking that often times, I make the font size slightly bigger, and requesting the 3px larger image (16px instead of 13px) gives a little bit of leeway for this sort of forced scaling. For my particular avatar, the difference winds up being 13 bytes of data.