• Why Automattic hates SVG has always been a source of confusion to me. Why shouldn’t uploading SVG be as easy and straightforward as any other kind of (supported) image? Then again, it’s true that you can write malicious code inside a SVG rather easily. The solution? Safe SVG. It cleans up a malformed or malicious SVG during the upload, so that when it arrives in your Media Library, it will already have been sanitised.

    The plugin is as simple to operate as it is useful. All parts of WP that require opening the Media Library browser will now accept SVGs as well. As others have remarked, there are some outstanding issues when previewing SVGs inside Gutenberg. No surprises there — this plugin has predated Gutenberg, and (at the time of writing) has been abandoned for about two years, during which Automattic has been eagerly upgrading WordPress.

    The author has not gone away, though. He is still actively developing the sanitising part of the plugin, using a library he has developed and posted on GitHub, and which has accepted several contributions and gone through many code reviews. It’s possibly the reference library for SVG sanitation written in PHP.

    And fortunately he’s now back and has released a brand new version as of late February 2022 ??

    • This topic was modified 2 years, 9 months ago by Gwyneth Llewelyn. Reason: Plugin most definitely *not* abandoned!
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jeffrey Paul

    (@jeffpaul)

    @gwynethllewelyn we’re actually just about to release a 1.9.10 update to the plugin, so stay tuned for that release and then we can sort out what additional enhancements or fixes would be ideal from your usage perspective… thanks!

    Plugin Contributor Jeffrey Paul

    (@jeffpaul)

    @gwynethllewelyn note that we just released version 1.9.10 today, let us know if you have any further questions or concerns on this topic… thanks!

    Thread Starter Gwyneth Llewelyn

    (@gwynethllewelyn)

    Wonderful! I’ve updated my review!

    Wow, that was really quick… I mean, if I had written that review today, I wouldn’t mention the long waiting time… after all, people do have their personal lives!

    Now I have to go back to Gutenberg and see if everything works. One thing I’ve immediately noticed: when on custom posts, SVG images used as small previews now get flawlessly re-dimensioned to fit the row correctly. This is a huge relief for me, because the previous version simply ran the SVG at its full, default size… no functionality was lost on the admin panel, but it was certainly visually very annoying!

    Just for that I’m already eternally grateful ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incredibly useful!’ is closed to new replies.