From 11e8dd2193396e9e62b9948d828ef884778a275c Mon Sep 17 00:00:00 2001 From: Phu Tu Date: Tue, 3 Sep 2024 16:29:56 +0200 Subject: [PATCH] Corrects content type of SVGs from Wikimedia. Resolves #385 in fact PNGs are delivered when width parameter is used --- gatsby/lobid/static/imagesproxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby/lobid/static/imagesproxy.php b/gatsby/lobid/static/imagesproxy.php index 9cda41e..a6154e3 100644 --- a/gatsby/lobid/static/imagesproxy.php +++ b/gatsby/lobid/static/imagesproxy.php @@ -9,7 +9,7 @@ $filename = basename($url); switch (true) { - case (stripos($filename,".ico") || stripos($filename,".png")): + case (stripos($filename,".ico") || stripos($filename,".png") || stripos($filename,".svg?width=")): $ctype="image/png"; break; case (stripos($filename,".jpg") || stripos($filename,".jpeg")):