Jump to content
Announcing Achievements! ×

Community

SVG for logos and icons and WebP for images.


Recommended Posts

We already know that in 4.6 we will be able to use the WebP format.

But will SVG support also be added? Why? Because SVG format is intended for logos and icons. Assets load in lightning speed, much faster than in PNG.

Please consider the suggestion 🙂

Link to comment
Share on other sites

Was there a technical reason why this has not been standardized? I am curious as to why SVG support has not already been added.

SVG has been around for 20 years (technically, 19 years, 20 this September). https://en.wikipedia.org/wiki/Scalable_Vector_Graphics It became a browser standard 10 years ago (since 2011) https://en.wikipedia.org/wiki/Scalable_Vector_Graphics#Native_browser_support I am surprised to learn even discontinued Internet Explorer 9 - 11 all supported SVG.

Or was this an oversight? 🤔

 

 

 

Edited by Linux-Is-Best
Link to comment
Share on other sites

8 hours ago, SeNioR- said:

Great! Can you also add SVG support for category icons and reactions?

I will think about it, I bundle all features that I would use on my own site in one app, I put them on marketplace not for money, just to share, tho it won't be free

Edited by Eudemon
Link to comment
Share on other sites

SVGs are definitely great for logos and non-complex images, they scale nicely being vector images although they can add a lot of bloat to a page but fortunately they're cachable. Something that came to mind, I'm not sure what if any protection is in place within IPS for non-IPS provided/third party uploaded SVGs. You need to be careful and make sure that they’re sanitized to stop SVG/XML vulnerabilities affecting your site.

There's a good library available here that can help to avoid opening up security holes by allowing uploads of unsanitised files, it's used by some highly rated SVG Wordpress plugins:

https://github.com/darylldoyle/svg-sanitizer

Just something to be mindful of. 🙂

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy