Forum Discussion
Rise - Labelled graphic and SVG?
I came back to this months later after using more and more SVG in my courses and kept getting random problems with SVG's. Sometimes they would shrink. Sometimes some of the content within them would disappear.
I eventually discovered that Rise applies "image compression" to things you upload, and their compressor sometimes utterly trashes SVG contents. For instance, if an element has an opacity of 0 then the whole element is deleted from the resulting svg, even if that element was going to be animated to be opacity 1 at some point (the workaround being to set attribute values to "0.001" instead of "0"). Sometimes if the file has no viewBox and instead uses width/height the file shrinks to 1 pixel. Sometimes if you have used transform on a node the attribute is simply removed, ruining the layout.
Adding _NOPROCESS_ to the filename (e.g. map.svg becomes map_NOPROCESS_.svg) prevents the "optimiser / file-content-destroyer" from running on the svg upload and therefore the file tends to work.