| From: | Magnus Hagander <magnus(at)hagander(dot)net> |
|---|---|
| To: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
| Cc: | Christoph Berg <myon(at)debian(dot)org>, Dave Page <dpage(at)pgadmin(dot)org>, "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>, 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 - v14 |
| Date: | 2026-11-07 11:56:16 |
| Message-ID: | CABUevEzF-v+Yady6pUuKO=5OsDEjP2mPeuq6U8MK3B6HfhvijA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-www |
On Fri, 6 Nov 2026 at 15:09, Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
> > On 4 Nov 2026, at 20:38, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>
> > Do we even (want to) support badges without images? Whta's the point of
> a badge that has no image?
>
> Requiring an image seems like a good clamp-down to reduce complexity early
> on,
> we can revisit later if a good usecase comes up (text-only badges which are
> applied with a CSS class comes to mind).
>
> > Why are we doing this whole exif orientation thing in the first place?
> Surely we can expect people to upload badges that are not upside down?
>
> Agreed, another reduction in complexity to get a base functionalty agreed
> upon.
> Rotation is also, IMHO, most useful when accepting images taken by a
> smarthpone
> which may have been held in all sorts up upside-down-left-center ways.
> 150x150px badge images will be generated by tools and less susceptible to
> being
> upside down.
>
> > Why do we want to support both PNG and JPG? Seems a badge should be only
> PNG?
>
> For such small formats, I would prefer PNG only for now. In the future we
> could add SVG to the list, or even pure CSS based (not for upload, but a
> hardcoded set defined by pgweb committers).
>
SVG would allow for inling the images in the HTML itself, which might be a
win *iff* th eimages are small enough. Definitely something to consider for
an opitmisation as the number of badges grow. So bsaic support for SVG
would definitely be good, but let's make sure it's also verified that they
are "pure" SVGs and not just an SVG with an embeded raster image..
//Magnus
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joe Conway | 2026-11-07 14:18:17 | Re: Wiki editor request |
| Previous Message | Zsolt Parragi | 2026-11-07 08:31:10 | Wiki editor request |