Page 1 of 1

add svg logo

Posted: 14 Mar 2016, 12:21
by rokudamerlin
hey karl i have problems to add a svg logo

i have change the logo settings to image
have upload the svg logo in custom/logo

but i dont see it ..

hope you can help me

Re: add svg logo

Posted: 14 Mar 2016, 12:35
by mjau-mjau
The SRC attribute is empty for your logo. What is the link to your SVG logo file?

Re: add svg logo

Posted: 14 Mar 2016, 12:40
by rokudamerlin
logo.jpg
logo.jpg (48.26 KiB) Viewed 6242 times
but the logo give not display over the link

http://vektorstyle.de/custom/logo/logo.svg

hmm

give another way ?

Re: add svg logo

Posted: 14 Mar 2016, 14:27
by mjau-mjau
It works here:
Image
However, this is some export from some application where you have exported the entire canvas in "A4 format", and that's why there is a lot of space below the logo. Unfortunately, I don't have much experience working with SVG's myself, so I can't help.
Image

I am not sure why it doesn't work from your panel. What version are you using? Do you have any other images in the logo folder? I will need panel-login if I am to check.

Re: add svg logo

Posted: 14 Mar 2016, 14:35
by rokudamerlin
i have read in www. not all browser ready for display svg ..

i change it to png is better

Re: add svg logo

Posted: 14 Mar 2016, 14:38
by rokudamerlin
.png have the same problems -.-

i use X3 v0.15.1

Re: add svg logo

Posted: 14 Mar 2016, 14:43
by mjau-mjau
rokudamerlin wrote:.png have the same problems -.-
At least we know it's not related to SVG. I need login to your panel if I am to check.

Re: add svg logo

Posted: 14 Mar 2016, 15:21
by rokudamerlin
have send via private message you can test.

Warning is a live site , very importand for me :)

greez

Re: add svg logo

Posted: 14 Mar 2016, 15:24
by mjau-mjau
aha ... Sorry, this issue is a bit funny ... The issue stems from your server being SunOS.
Image

For some very strange reason, SunOS does not allow using GLOB_BRACE in PHP.
http://php.net/manual/en/function.glob.php
Note: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.
We rely on glob_brace to get first image in the logo folder:
Code
$images = glob($dir.'/*.{jpg,gif,jpeg,png,svg}', GLOB_BRACE|GLOB_NOSORT);
This fails on your system. In fact, we already have a half-workaround in pending release:
Code
$images = strtolower(PHP_OS) == 'sunos' ? glob($dir.'/*.[jJ][pP][gG]', GLOB_NOSORT) : glob($dir.'/*.{jpg,gif,jpeg,png,svg}', GLOB_BRACE|GLOB_NOSORT);
However, it's still not perfect, because it would only get the first JPG file on Sun OS.

I will look into it tomorrow and see if I can come up with a solution.

Re: add svg logo

Posted: 14 Mar 2016, 15:28
by rokudamerlin
you give ever the best - i know ;) best guy ;) but it is not so importand for me now, was only a test for svg/png logo ;)

Re: add svg logo

Posted: 15 Mar 2016, 06:36
by mjau-mjau
This issue has been fixed in the pending release, available soon ...