Reach over into your preview panel in the new post interface. Right click and copy image location on your now freshly uploaded SVG.
Link your text to that location. (which I did above). Piece of cake, and might head off the inevitable “how do I download”, and bonus: not zipped, so no answering that either.
As we make new posts and want them to be accessible to more people, this might be a thoughtful thing to do if you have a few extra seconds.
Not too late, go edit your post? I’d love to see “zip svg and upload that” go away, it’s a goofy step.
Now if only discourse would size SVGs reasonably on uploading… that’s one I haven’t figured out how to shortcut. I use the @rbtdanforth method of adding two zeroes to both dimensions. Maybe I should include a link to a post explaining that in this thread too?
I like zipping them because it maintains the integrity of the file. More than a few SVGs have been uploaded and had content altered by Discourse.
I think is related to where/how CSS is implemented. In Illustrator, I use Presentation Attributes (which isn’t actually CSS but attributes in the SVG tags).
I imagine Discourse strips out the in-line or internal CSS.
I’m not doubting you, but I haven’t seen this except in cases where embedded images don’t present properly, but downloading them has always made them appear properly.
Has anyone figured out how to reproduce that? Is it browser related or discourse related?
Yeah changing the page dimensions before uploading fixes that of course but in some cases it’s best to export a raster and upload that and then link to your svg either in zip or native form.
It all takes a bit of extra effort, but it does help with accessibility. Ymmv.