Thanks for the question. This error will show if the svg file can’t be loaded for some reason. In that case, we can’t sanitize the file and so we show this error instead.
Usually this means the svg file has some malformed structure and so it can’t be parsed properly. If you can share the svg file that you’re having issues with, I can take a closer look.
Hi Darin, thank you for your quick reply. Sure thing, there seems to be an issue with a few files, this one for example returns the error. Each of the svgs were made using the download as svg feature on Canva.
I can’t access that file. If you could paste the contents of the svg into something like https://gist.github.com/ and share that with me, I can take a look at what might be wrong.
Apologies, here’s the link for the svg.
Kind regards,
Callum
Sorry for the delay here, somehow missed the notification.
But in looking a the SVG you shared and testing it myself, it seems the issue is with the file size. We use the built-in DOMDocument PHP library to parse through the SVG contents and it by default only supports 10Mb or less. This SVG is slightly over that threshold and thus can’t be processed correctly.
I was not aware of that limit myself so I learned something here. Also seems like there’s a config option we could look to use to allow larger file sizes, so I have that on our list to investigate if there’s any downside to adding that