Post by distante » Wed Jul 16, 2014 11:35 pm

Hello,

I have a SVG file with the logo that I want to use but the image chooser in the store config don't even show me SVG files.

Image

Anyone was able to do this successfully?

Newbie

Posts

Joined
Fri Jun 13, 2014 1:14 pm

Post by melbagnato » Fri Jul 18, 2014 3:08 pm

Hi distante,

the image class (see under "/system/library/image.php") is set to use the following files only:
- .gif
- .png
- .jpeg/jpg

You'd have to modify some of the functions there to enable SVG. It might be easier to just convert the file to one of those formats.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by victorj » Fri Jul 18, 2014 4:13 pm

i did not know svg files until reading this post, and did some investigation.
svg files do have a lot of advantages compared to other formats.

smaller, fully scaleble, easyer to optimize, printable in big sizes without losing quality.
all very interesting specially for big product pictures and documents.

nice project for near future incoorporating this facility

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Eigen productie en snelle levering.
https://123-deurrubbers.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by distante » Fri Aug 01, 2014 7:33 am

victorj wrote:i did not know svg files until reading this post, and did some investigation.
svg files do have a lot of advantages compared to other formats.

smaller, fully scaleble, easyer to optimize, printable in big sizes without losing quality.
all very interesting specially for big product pictures and documents.

nice project for near future incoorporating this facility
Yes indeed!
melbagnato wrote:Hi distante,

the image class (see under "/system/library/image.php") is set to use the following files only:
- .gif
- .png
- .jpeg/jpg

You'd have to modify some of the functions there to enable SVG. It might be easier to just convert the file to one of those formats.

- Mel
I did a workaround, uploaded as logo a transparent x.png file, then in my css file create/modify "header h1 a" class with:

Code: Select all

header h1 a {
background: url(YOURLOGOURL/logo.svg) 0 0 no-repeat !important;
}
and that did the trick, hope this helps to anybody who needs it :crazy:

Newbie

Posts

Joined
Fri Jun 13, 2014 1:14 pm
Who is online

Users browsing this forum: No registered users and 53 guests