Fork me on GitHub

#1 2014-07-13 10:47:49

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

[FIXED] svg background screen not working

Hello, Oneye not support svg background screen

This does not work:
   

background: url("index.php?theme=default&extern=images/wallpapers/default.svg") repeat top center;

For against this works well:
   

background: url("images/default.svg") repeat top center;

In this case my image is at the root of the site.

Why ?

Offline

#2 2014-07-22 15:45:49

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: [FIXED] svg background screen not working

Actually the mimetype for SVG is not in the list of supported ones at https://github.com/oneye/oneye/blob/mas … in.eyecode .

I recommend you to add the following line right behind line 38:

		'svg' => 'image/svg+xml; charset=utf-8',

Best regards,
Lars Knickrehm

The oneye project.

Offline

#3 2014-07-24 09:37:18

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: [FIXED] svg background screen not working

Improved the mimetype handling yesterday. Just look at the following commit: https://github.com/oneye/oneye/commit/8 … 2dda05090e


Best regards,
Lars Knickrehm

The oneye project.

Offline

#4 2014-07-26 19:12:06

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

Re: [FIXED] svg background screen not working

Sorry, your changes have not solved my problem.
I tried these two codes:

background: url("index.php?theme=default&extern=images/wallpapers/default.svg") repeat top center;
background: url('index.php?theme=default&extern=images/wallpapers/default.svg') repeat top center;

And you're it work?

Offline

#5 2014-07-28 00:29:21

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: [FIXED] svg background screen not working

There was another place we checked the extension at. It's finally been fixed with the following commit: https://github.com/oneye/oneye/commit/4 … 52546bb79d .


Best regards,
Lars Knickrehm

The oneye project.

Offline

Board footer

Powered by FluxBB