Jump to content

SVG for logos and icons and WebP for images.


SeNioR-

Recommended Posts

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

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

  • 2 weeks later...
  • 8 months later...
  • 1 month later...
On 1/6/2022 at 1:06 PM, Jim M said:

SVG is not supported yet for a theme logo. Some of the icons, depending on the manifest specification from the provider, allow it but others do not so we only allow it where that is possible.

There's a feature suggestion here that you're welcome to add on to with your comments: https://invisioncommunity.com/forums/topic/461372-svg-for-logos-and-icons-and-webp-for-images/

 

Is .webp currently supported for logos? Unless I am mistaken, within the ACP, I only see an option within "Posting" to set images upload extensions but I see no other abilities to set extensions throughout the site. Am I missing where I can enable this?

When I try to upload a .webp logo, I get the error:

1.thumb.jpg.bfb3062a56607a18a9c49925aea80ad1.jpg

Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...
  • 2 months later...
On 11/28/2022 at 4:24 AM, Gary said:

Time sure does fly when you're having fun!

Let me add this to my list of things to bring forward to the team. Without a backend, there wouldn't be a frontend, but I do understand that this has been a common request so I'll see how, when and if this can be implemented.

I'll come back to you with some info everyone.

Any news on adding this feature yet?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...