svg as logo (in cassiopeia)

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla 4.0 is still in Beta stage. This forum should be used for sharing information about Joomla! 4.0.

Moderator: ooffick

Forum rules
Locked
User avatar
Jaydot
Joomla! Guru
Joomla! Guru
Posts: 651
Joined: Sun Jun 04, 2017 12:11 pm
Location: The Netherlands
Contact:

svg as logo (in cassiopeia)

Post by Jaydot » Tue Mar 16, 2021 3:30 pm

Hi,
Edited to add: never mind :-[
I needed to add svg as valid extension/mime type in the Media Options.
-------------------------------
How does one insert a logo that is an svg-file?

When inserting (in the template style), the svg is simply not visible.

And there seems to be no way to enter the filename manually - or am I overlooking something?

(When inserting an image in an article, I can't see the svg either, but at least there I can manually edit the filename - the svg displays flawlessly in both backend and frontend).

Thanks,
j.
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
mjparadac
Joomla! Hero
Joomla! Hero
Posts: 2488
Joined: Mon Oct 29, 2012 3:58 pm

Re: svg as logo (in cassiopeia)

Post by mjparadac » Tue Mar 16, 2021 4:05 pm

Coincidentally I have found a thread where you have commented about that topic.
viewtopic.php?t=974532
Thank you for reporting that you solved the problem.
Joomla Community Ambassador for A2 Hosting | A2 Hosting - Our speed, your success | https://www.a2hosting.com/joomla-hosting

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

Re: svg as logo (in cassiopeia)

Post by Jaydot » Tue Mar 16, 2021 4:12 pm

mjparadac wrote:
Tue Mar 16, 2021 4:05 pm
Coincidentally...
Ah, but that was J3... :). That very practical little box where you can edit the filepath/filename is no longer there in J4.
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl

erick-b
Joomla! Explorer
Joomla! Explorer
Posts: 298
Joined: Tue Feb 17, 2015 10:25 am

Re: svg as logo (in cassiopeia)

Post by erick-b » Mon Apr 05, 2021 10:41 am

I am using svg for menu icons, favicon and logos in J4
go to media > options > Legal Extensions and Legal image Extensions : add svg
Legal MIME types : add image/svg+xml

if you use tinyMCE > tab plugin > Extended Valid Elements : add svg

same for any editor like JCE : permitted file extensions

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2721
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: svg as logo (in cassiopeia)

Post by ceford » Mon Apr 05, 2021 12:08 pm

Beware, uploaded svg files are not sanitized and could contain malicious code!

erick-b
Joomla! Explorer
Joomla! Explorer
Posts: 298
Joined: Tue Feb 17, 2015 10:25 am

Re: svg as logo (in cassiopeia)

Post by erick-b » Tue Apr 06, 2021 6:29 am

ceford wrote:
Mon Apr 05, 2021 12:08 pm
Beware, uploaded svg files are not sanitized and could contain malicious code!
it does not matter , this is the only way to go for icons, logos and favicons

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2721
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: svg as logo (in cassiopeia)

Post by ceford » Tue Apr 06, 2021 7:34 am

erick-b wrote:
Tue Apr 06, 2021 6:29 am
it does not matter , this is the only way to go for icons, logos and favicons
Using SVGs - Yes
Using SVGs that you have made yourself - Yes if you trust the software you used to make them.
Using SVGs from third parties - Yes if they are sanitised.

Ordinary users should search the web for "security issues with svg files" for enlightenment.

The Joomla Media Manager is a tad cumbersome and does not sanitize SVGs. By cumbersome I mean you have to add extensions in lower and upper case and the mime-type. And it does not scale well. I wrote a media catalogue component for my own amusement that addressed a number of concerns for me. You can find it here: https://github.com/ceford/j4xdemos-media-cat

erick-b
Joomla! Explorer
Joomla! Explorer
Posts: 298
Joined: Tue Feb 17, 2015 10:25 am

Re: svg as logo (in cassiopeia)

Post by erick-b » Tue Apr 06, 2021 4:16 pm

its up to each one, i use svg as much as i can , even for sprites.svg


Locked

Return to “Joomla! 4 Related”