Skip to content

Commit

Permalink
Corrects content type of SVGs from Wikimedia.
Browse files Browse the repository at this point in the history
in fact PNGs are delivered when width parameter is used
  • Loading branch information
Phu2 committed Sep 3, 2024
1 parent 979eeb5 commit a5d0b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby/lobid/static/imagesproxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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")):
Expand Down

0 comments on commit a5d0b23

Please sign in to comment.