Hacker News new | ask | show | jobs
by HugoDaniel 3444 days ago
Because people who write SVG's usually don't know about the viewBox property[0]. They just use illustrator to draw the shape and then export it.

[0]https://sarasoueidan.com/blog/svg-coordinate-systems/

1 comments

> They just use illustrator to draw the shape and then export it.

You're lucky. Last designer I asked to provide a SVG image had obviously exported from a vector drawing tool to a bitmap, AND THEN converted to SVG. So you kinda had a whole SVG object for each pixel.

It never occurred to him that a 40 MB SVG file might indicate a problem (when the point of having a vector format was partly to save memory).

I think your designer may have taken "pixel perfect" a little too literally.
Lots of <rect>'s in that SVG :D

I wonder how big can the SVG DOM be in browsers before things start to get painfully slow