Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-10-30 16:37:11

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

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

#3 2012-10-31 07:16:03

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

#4 2012-10-31 09:21:52

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Accepte svg for content images tab

+1

Offline

#5 2012-10-31 09:37:08

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

#6 2012-10-31 10:51:38

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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

#7 2013-04-28 23:30:25

agovella
Member
From: Houston, TX
Registered: 2005-05-01
Posts: 66
Website Twitter

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

#8 2013-04-29 09:36:27

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

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

#9 2013-07-25 15:25:45

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

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

#10 2013-07-25 22:16:57

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

#11 2013-07-26 07:02:39

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

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

#12 2013-07-26 07:28:02

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

Board footer

Powered by FluxBB