Search…

X3 Photo Gallery Support Forums

Search…
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

add svg logo

14 Mar 2016, 12:21

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13995
Joined: 30 Sep 2006, 03:37

Re: add svg logo

14 Mar 2016, 12:35

The SRC attribute is empty for your logo. What is the link to your SVG logo file?
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Re: add svg logo

14 Mar 2016, 12:40

logo.jpg
logo.jpg (48.26 KiB) Viewed 5651 times
but the logo give not display over the link

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

hmm

give another way ?
VektorStyle.de
Graphic - Web - Printdesign | X3
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13995
Joined: 30 Sep 2006, 03:37

Re: add svg logo

14 Mar 2016, 14:27

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.
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Re: add svg logo

14 Mar 2016, 14:35

i have read in www. not all browser ready for display svg ..

i change it to png is better
VektorStyle.de
Graphic - Web - Printdesign | X3
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Re: add svg logo

14 Mar 2016, 14:38

.png have the same problems -.-

i use X3 v0.15.1
VektorStyle.de
Graphic - Web - Printdesign | X3
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13995
Joined: 30 Sep 2006, 03:37

Re: add svg logo

14 Mar 2016, 14:43

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.
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Re: add svg logo

14 Mar 2016, 15:21

have send via private message you can test.

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

greez
VektorStyle.de
Graphic - Web - Printdesign | X3
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13995
Joined: 30 Sep 2006, 03:37

Re: add svg logo

14 Mar 2016, 15:24

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.
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Re: add svg logo

14 Mar 2016, 15:28

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 ;)
VektorStyle.de
Graphic - Web - Printdesign | X3
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13995
Joined: 30 Sep 2006, 03:37

Re: add svg logo

15 Mar 2016, 06:36

This issue has been fixed in the pending release, available soon ...