how i can use svg image for my logo

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
msmgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 196
Joined: Mon Aug 23, 2010 8:29 pm
Contact:

how i can use svg image for my logo

Post by msmgin » Fri Sep 20, 2019 9:00 am

Hi,

I have tried to use svg file for my logo, so that it could be very clear even when it's very small.
my template doesn't accept this kind of extension.

kindly advice is joomla support svg file in logo position. and how I can use it.

thanks,

User avatar
bruno28
Joomla! Explorer
Joomla! Explorer
Posts: 388
Joined: Wed May 16, 2012 5:41 am
Location: Chartres, France
Contact:

Re: how i can use svg image for my logo

Post by bruno28 » Fri Sep 20, 2019 10:00 am

msmgin wrote:
Fri Sep 20, 2019 9:00 am
Hi,

I have tried to use svg file for my logo, so that it could be very clear even when it's very small.
my template doesn't accept this kind of extension.

kindly advice is joomla support svg file in logo position. and how I can use it.

thanks,
Hello msmgin

I tried to do the same thing and I never succeed with Media manager who don't see svg files

I succeed in uploading svg by FTP and past the svg file name directly in a page and it worked

Which template do you use ?
Cordialement, Bruno28 :)
Joomla! 3.9.13 - php 7.3
https://www.bp2i.fr/ - https://www.moneglisesurle.net/

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 8226
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: how i can use svg image for my logo

Post by sozzled » Fri Sep 20, 2019 10:24 am

It can be made to work (I experimented with a .svg file and Protostar) but it's a bit of a fiddle. See viewtopic.php?t=869042 for the answer.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
Jaydot
Joomla! Explorer
Joomla! Explorer
Posts: 292
Joined: Sun Jun 04, 2017 12:11 pm
Location: The Netherlands
Contact:

Re: how i can use svg image for my logo

Post by Jaydot » Fri Sep 20, 2019 12:21 pm

Joomla works with svgs, no problem, it just won't show them when you want to select an image to insert.
And you will need to use ftp to upload svgs (to the correct folder).
What I do is the following:
- all my svgs are in the svg folder;
- in that folder, there is also one small jpg, for no other reason than that it is visible;
- make sure you know the filename of the svg you wish to insert (another good reason to keep filenames as short and simple as possible);
- when I need to insert an svg, I go to my svg folder, and click on the jpg;
- under the images, there is a box that says ""Img URL" - there you can change the name of the jpg to the name of your svg (with the extension .svg, not .jpg, obviously);
- click "insert".
(Clicking on the jpg first ensures that you will be using the correct path).
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3945
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: how i can use svg image for my logo

Post by gws » Fri Sep 20, 2019 12:53 pm

@jaydot that is a very neat workaround.

User avatar
bruno28
Joomla! Explorer
Joomla! Explorer
Posts: 388
Joined: Wed May 16, 2012 5:41 am
Location: Chartres, France
Contact:

Re: how i can use svg image for my logo

Post by bruno28 » Fri Sep 20, 2019 1:44 pm

@jaydot

thank you, it is more simple than what I was doing
Cordialement, Bruno28 :)
Joomla! 3.9.13 - php 7.3
https://www.bp2i.fr/ - https://www.moneglisesurle.net/

User avatar
Jaydot
Joomla! Explorer
Joomla! Explorer
Posts: 292
Joined: Sun Jun 04, 2017 12:11 pm
Location: The Netherlands
Contact:

Re: how i can use svg image for my logo

Post by Jaydot » Fri Sep 20, 2019 2:31 pm

@gws, @bruno, thank you :).
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl

User avatar
bruno28
Joomla! Explorer
Joomla! Explorer
Posts: 388
Joined: Wed May 16, 2012 5:41 am
Location: Chartres, France
Contact:

Re: how i can use svg image for my logo

Post by bruno28 » Fri Nov 08, 2019 9:33 am

Hello everyone

I have just found an even better way with JCE Editor :

In Content / Media / Options

Legal Extensions (File Types) --> add svg

Legal MIME Types --> add image/svg+xml


In Components / JCE Editor / Default (or your profile)

Plugin Parameters -> Image Manager Permitted File Extensions --> add svg and click on the + sign

Then you will be able to insert svg files like other image files
Cordialement, Bruno28 :)
Joomla! 3.9.13 - php 7.3
https://www.bp2i.fr/ - https://www.moneglisesurle.net/


Post Reply

Return to “Installation Joomla! 3.x”