Re: Introduce contributor badges

From: Christoph Berg <myon(at)debian(dot)org>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>, Daniel Gustafsson <daniel(at)yesql(dot)se>, pgsql-www(at)lists(dot)postgresql(dot)org, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, PostgreSQL Contributors <contributors(at)lists(dot)postgresql(dot)org>
Subject: Re: Introduce contributor badges
Date: 2026-10-16 12:49:45
Message-ID: atIdaaQxQRpBWERs@msg.df7cb.de
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-www

Re: Dave Page
> > What max input size would we accept? 2000x2000 (4 megapixels) should
> > be pretty much enough for everyone?
>
> These are images for badges - why on earth do they have to be that big? You
> pad them and then display them at 150x150 from what I can see. All of that
> seems like work that needn't be done by our servers - I would have the user
> upload at <= 256x256 or something (and adjust max_length to something more
> reasonable), and then pad and resize them in CSS. Which looks like it might
> be broken anyway - .badges-grid uses minmax(150px, 1fr) with img { width:
> 100% }, so on wide layouts a 150px image likely gets stretched beyond its
> real size.

That would be the max acceptable input size before server-side
rescaling. I proposed something insanely large that shouldn't get in
the way of anyone uploading while still limiting server memory.
What you are saying is that we shouldn't do server-side rescaling but
just take the user image-as is. That works for me.

I'll work on a patch to make that switch.

(The question might come back if we want to build a sprite image.)

Christoph

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Daniel Gustafsson 2026-10-16 12:53:51 Re: Introduce contributor badges
Previous Message Dave Page 2026-10-16 12:44:05 Re: Introduce contributor badges