Support for the SVG format

nofc_fro

Member
Hi,
I want to insert a logo in the PDF file of the list. With the "jpg" and "png" formats I have no problems, I tried instead to insert the logo.svg and it is not displayed. Is there a support for the SVG format?
 
It's working on my site (tested with details PDF with a textarea element).
Did you add the svg extension to "Legal Extensions (File Types)" in Joomla's Media Options?
 
Looks like you hadn't added image/svg+xml to the "Legal MIME Types" (just below "Legal Image Extensions".

I logged in to your site and added it.

Let me know if that fixes it.

-- hugh
 
I saw that added the string, however if I load a continuous svg file to have the same error message, did you accidentally try to load a svg file?

>> https://seocrate.it/problem/test.svg

fabrik-svg-error.jpg
 
Last edited:
This is during upload (although I don't understand why).
You may try to
- upload via e.g. FTP
or
- set the "Restrict uploads"=no (temporarily)
and see if you can use it in your PDF.
 
On my site I also have issues with uploading svg (via Joomla media or JCE editor).
But after upload via FTP I can include it directly in a custom template or use it in the JCE editor (after adding svg as allowed file type there, too) and it's displayed in the browser and in the PDF...

How did you include it in your template, with an absolute or a relative path?
 
OK, turns out the uploading of SVG is a known problem in J! ...

https://github.com/joomla/joomla-cms/issues/16795

... because there's a line in the media manager code that blocks any MIME type that has 'xml' in it, which SVG does (image/svg+xml). In typical J! fashion they've spent four years arguing the finer points of potential solutions rather than just fixing it. :)

-- hugh
 
Last edited:
Yes I read the discussion about SVG files ... on Wordpress this problem is not there (there is a plugin that takes care of checking if SVG files are safe) :(
However, I used a relative path and an absolute path, but I have not solved :(

echo "<img src='http://nofc.joomla.com/images/logo.svg' alt='logo'>";
 
Dunno what's going on there. But it's not a Fabrik issue, so I can't really help.

Just FYI, I can access an SVG file locally, in my images folder. Maybe you have something in your htaccess which is causing problems?

-- hugh
 
No, the .htaccess file is the original one. The svg file in other parts of Joomla is displayed correctly. However it is not a problem, I will use a png file ;)
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top