Hacker News new | past | comments | ask | show | jobs | submit login

Does anyone have any resource on which features are broken across implementations? How to stay sane with SVG?

I recently made the mistake of making a complex conference poster using SVG. It now renders different in every browser and program

https://kxygk.github.io/imergination/

In making the graphic I noticed:

- You can include/link SVGs to embed, but if they in turn include other SVGs then it will not work (ex: the poster -> diagrams -> several plots/maps). So dynamic SVGs that are updated when subimages change are impossible

- Webbrowsers randomly and will refuse to display embedded/linked image b/c of "security"

- Ex: in the above link, if you try to open the SVG in a separate tab it won't display correctly: https://raw.githubusercontent.com/wiki/kxygk/imergination/ag...

- It was basically impossible to turn a complex SVG into a PDF without inconsistencies and/or running out of RAM

- Every SVG-to-PDF converter gives different results

- Many implementations (ex: Inkscape) will randomly treat included SVGs are a raster graphic. I never pinpointed when this would occur (and even then, when rendering to PNG Inkscape doesn't propagate the DPI setting to subimages)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: