Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Embedding an svg logo in the header.inc.php
#1
Hi,

this may be not a Getsimple problem but a webserver problem...

I tried to embed an svg logo like in this instruction:

https://www.mediaevent.de/svg-in-einem-image-tag/

Code:
<svg width="96" height="96">
   <image xlink:href="svg.svg" src="svg.png" width="96" height="96"/>
</svg>

which claims to be very elegant, with a fallback png file for non-svg browsers.

It works fine on my WAMP server, but not on my web server. There I get none of the both logo files. It is empty...

It was also not possible just to embed the svg image with img src="" like a png image, there seems to be a delivering problem with svg files on the server. And: a link to an svg file shows not the rendered file but its source code.

Could anybody help me with this?

Thank you
Hypertexter
Reply
#2
Server Mime settings
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
Hi shawn_a,

I added this to my .htaccess file:


Code:
AddType image/svg+xml svg svgz
AddEncoding gzip svgz

Did you mean that? It did not help.

Hypertexter
Reply
#4
Oh. It seems to be a Getsimple problem!

The same svg file in the root of my webspace is displayed without problems. Only in the /data/uploads folder it is displayed as a text file.
But other image files in /data/uploads like jpg or png are no problem. Huh



Hypertexter
Reply
#5
Exclamation  This was the culprit:


Code:
#RewriteRule ^data/uploads/(.*)$ plugins/download_interceptor/intercept.php?file=$1 [L]


in .htaccess.

But I liked download interceptor... why does it swallow svg files?

Hypertexter
Reply




Users browsing this thread: 1 Guest(s)