WordPress Performance Team plans to build a module for SVG uploads
SVG or Scalable Vector Graphics is a modern graphics format that is commonly utilized for creating logos or favicons. Despite its popularity, WordPress doesn’t support the direct uploading of SVG files. Users have to use plugins for uploading the vector graphics.
This issue was addressed during the WordPress Performance Team meeting, where the contributors debated building a new module for SVG uploads.
“This is one of the bigger achievable pain points that I see in WP, as the vectorized format is quite popular for logos, icons, and illustrations. SVG is widely supported and has been for some time. A lot of concerns have been raised in the original Trac ticket about this in terms of security, as SVGs could include scripts, which is a security concern. The proposal only allows for SVGs to be uploaded if they do not contain scripts”, said contributor Masteradhoc.
The Performance team will be developing a module that allows WordPress users to upload SVG files and scripts. The proposal got support from the majority of contributors and a few of them even mentioned that WordPress Core likely doesn’t have essential tools to examine the scripts within an SVG file however, an action or filter could be added.
A WordPress contributor with the username Flixos90 said, Supportive of a Performance Lab module for this. Given that there are reliable approaches out there already for stripping scripts from SVGs, would be realistic to get this as a module fairly quickly and then get some testing. 6.2 for core merge would be a realistic goal.
For more Technology News, subscribe to our newsletter and get the latest updates from the various tech industries.