Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Accepte svg for content images tab
Svg is accepted in html img element in all browser
Use is becoming more common with responsive/scalable design and retina display.
I would love add .svg to the images tab.
Thanks
Offline
#2 2012-10-30 17:31:17
- milosevic
- Member
- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 390
Re: Accepte svg for content images tab
+1
<txp:rocks/>
Offline
Re: Accepte svg for content images tab
Please keep in mind that SVG is a very versatile format: It allows to embed Javascript with security-related side-effects (PDF).
We’d definitely need to make sure that this capability is kept in mind if we added SVG support for images.
Offline
Re: Accepte svg for content images tab
+1
Offline
Re: Accepte svg for content images tab
How do other CMSes handle this? Might give us a few clues on how to implement.
…Ah, just tried it in WordPress – SVG upload is not allowed due to security reasons.
Offline
Re: Accepte svg for content images tab
wet wrote:
Please keep in mind that SVG is a very versatile format: It allows to embed Javascript with security-related side-effects (PDF).
Sounds like a nightmare.
I would go
-1
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Accepte svg for content images tab
SVG images are a key component for responsive designs.
Is there a way advanced users can allow svg images to be uploaded?
Can we edit the TxP code to remove the block against SVG images?
Offline
Re: Accepte svg for content images tab
Of course, there is nothing to stop you uploading SVG images via FTP and using them as part of the site design and including them with either HTML <img>
tags or CSS.
Offline
Re: Accepte svg for content images tab
I think too, there should be the option to upload svg files on the admin side. It could be restricted by Privileges.
That way it would be easier for clients to use and administrate svg image files, without using ftp.
Greetz
[Axel]
Greetz [Axel]
Offline
Re: Accepte svg for content images tab
The only way I’d like to see this implemented is via a hidden preference. i.e. activate by a line added in the config.php file or something. It’s a potential minefield allowing SVG uploads as an easily accessible feature for the reason Robert has already highlighted.
Offline
Re: Accepte svg for content images tab
I know the risk, and think the idea of activation is fine with me, even though I think, when having the highest priv (Publisher) you usually also have ftp access, and can upload svg there without a hassle. Saying you are not allowed to upload svg images in Textpattern is like telling a smoker he is not allowed to smoke at his home.
Greetz [Axel]
Offline
Re: Accepte svg for content images tab
Well, that’s also how it is in WordPress.
I just think by easily allowing this feature we could make a lot of support requests for ourselves, not just with security concerns but also how SVG is handled in various browsers – I’ve done a lot of work with SVG, and I really like the format, but there are some serious issues with various browsers (even some of the most recent browser releases).
I only ever use SVG coupled with browser testing (via Modernizr) to provide alternative image files to those with poor/no SVG support in-browser.
Offline