From 46f6dd46d3dbe44fd3cbe5e405d875b09f25c6bc Mon Sep 17 00:00:00 2001 From: Sabine Maennel <5292683+sabinem@users.noreply.github.com> Date: Wed, 2 Sep 2026 07:18:58 +0200 Subject: [PATCH] fix(frontend): the PSI logo is drawn, not sampled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PSI's mark is a stipple — a cloud of ~760 separate dots — and it shipped as a 91x40 PNG. Scaled into the footer's 20px box on an ordinary 1x display that dither collapsed into a mottled blob, and it blurred again on any screen that upscaled it. So it read as a smudge to some people and as a clean logo to others, decided by nothing but their display. Nothing was tinting it. Every pixel of that PNG — and of both earlier versions of the same file — is neutral grey, chroma zero, and the only filter on it is `invert`, which is neutral in any colour space. The "brownish" was the dither breaking up, plus whatever warmed the screen reading it. Replaced with the vector logo from Wikimedia Commons ({{PD-textlogo}}: simple shapes and text, below the threshold of originality). Recoloured white on the root — the file declares no other fill — so it keeps the one monochrome rule the other three institution logos follow: `h-5 invert dark:invert-0` is untouched, and the cap-height arithmetic in the comment still holds at 50%. This also takes the only LFS-backed asset out of the four institution logos. .gitattributes sends *.png to LFS but not *.svg, so a clone without git-lfs served a 133-byte pointer at that path while EPFL, ETH and Biopôle rendered fine. Cost: 83KB raw, 17KB gzipped, against 6KB for the PNG. That is what 760 vector dots weigh; the build already precompresses .svg. --- components/frontend/static/images/logos/psi.png | 3 --- components/frontend/static/images/logos/psi.svg | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 components/frontend/static/images/logos/psi.png create mode 100644 components/frontend/static/images/logos/psi.svg diff --git a/components/frontend/static/images/logos/psi.png b/components/frontend/static/images/logos/psi.png deleted file mode 100644 index 73713c90..00000000 --- a/components/frontend/static/images/logos/psi.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d6f8a7473b6b05c620f892e656f17f5a38d635b09425abec10f6c6b867070f2 -size 6121 diff --git a/components/frontend/static/images/logos/psi.svg b/components/frontend/static/images/logos/psi.svg new file mode 100644 index 00000000..c80bfbc7 --- /dev/null +++ b/components/frontend/static/images/logos/psi.svg @@ -0,0 +1 @@ +