Wednesday 13 March 2019

How to add SVG support to WordPress media uploader • CSSIgniter


WordPress allows the users to upload many file formats via its built in media uploader. Among them one can find the most popular image file formats, .jpg, .jpeg, .png, .gif and .ico. As you might have noticed SVG files are not among the ones allowed. In today’s article we’ll learn more about SVG and then we’ll add support for them in WordPress’ media uploader. What are SVG
According to Wikipedia Scalable Vector Graphics (SVG) is an XML-based vector image format for two-dimensional graphics with support for interactivity and animation. The SVG specification is an open standard developed by the World Wide Web Consortium (W3C) since 1999.
SVG images and their behaviors are defined in XML text files. This means that they can be searched, indexed, scripted, and compressed. As XML files, SVG images can be created and edited with any text editor, as well as with drawing software.
SVG are currently used by 16.1% of all websites
and browser support is pretty great.
SVG are usually much smaller in size and they can be easily scaled without visually distorting the image. This makes them ideal for displaying logos and graphics on a site.
SVG and WordPress
As mentioned earlier
Source: https://managewp.org/articles/18449/how-to-add-svg-support-to-wordpress-media-uploader-cssigniter



source https://williechiu40.wordpress.com/2019/03/13/how-to-add-svg-support-to-wordpress-media-uploader-%e2%80%a2-cssigniter/

No comments:

Post a Comment