Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#27038 closed feature request (maybelater)

Theme screenshot does not support SVG

Reported by: reyncor Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: ui, administration Cc:


"The screenshot will only be shown as 387x290, but the over double-sized image allows for high-resolution viewing on HiDPI displays."

I would like to support 3x,4x... HiDPI displays. It is now possible to generate an SVG of a site with WebVector http://cssbox.sourceforge.net/webvector/ However, the WordPress admin panel ignores it.

Change History (5)

#1 @helen
7 years ago

  • Keywords close added
  • Version changed from trunk to 3.8

Hi reyncor - thanks for the suggestion. Allowing arbitrary SVGs is asking for trouble, as they are just XML documents. We don't allow them as user uploads by default, either. You can always make a really large PNG for now, I suppose. Not sure how this plays into the WordPress.org Theme repo guidelines, either. Marking for close.

#2 @SergeyBiryukov
7 years ago

  • Component changed from Administration to Themes
  • Focuses template removed

Related: #24251

#3 follow-up: @njordon
6 years ago

"Allowing arbitrary SVGs is asking for trouble..."

In what possible way? SVG is a standard that has been around since 1999 only has become more popular since its creation. In what way can SVG or XML documents cause trouble? Furthermore, there has been a very big push in recent years to switch to vector graphics (like CSS3 and SVG) from raster graphics (like JPG, GIF, and PNG).

That being said, I think that SVGs should be supported, given that a raster alternative is available for older browsers. (a solution that is already commonly implemented)

#4 in reply to: ↑ 3 @johnbillion
6 years ago

  • Type changed from enhancement to feature request
  • Version 3.8 deleted

Replying to njordon:

In what way can SVG or XML documents cause trouble?

There are security issues with SVGs, as there are with most other XML formats. See https://core.trac.wordpress.org/ticket/26256#comment:12 for more info.

Sanitisation is an option, though.

#5 @chriscct7
6 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

SVGs are not supported per #24251 and no additional requests in a year. Closing as maybelater.

Note: See TracTickets for help on using tickets.