-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect SVG size by bboxes #40
Comments
Hey, I'd like to submit a PR allowing to convert most files missing the attributes to Micro SVG, but your input is needed on a few points:
Which of the alternatives would you prefer? Are you happy with this proposed design? |
Yes, the main problem with this issue is that the SVG spec doesn't explain how it should be handled (afaik). We could potentially ignore files with % coordinates, but Also note that behaviour for filter is also unspecified. So while blur/dropshadow do expand the canvas, should they also expand the viewbox? Same goes for paths with wide stroke. |
Yeah, the spec is a bit ambiguous.
This is what the attributes default to anyways so it'd have to be supported in the PR (both of my design proposals would accomodate such a file)
I would not make them do that, as long as the canvas grows, we are good AFAIK (but then again, this would make my life easier, so I'm not impartial here). |
Yes, for the initial implementation tight path bbox + fallback size would be enough. |
Currently, we skip files which doesn't have
width
,height
orviewBox
attribute.The text was updated successfully, but these errors were encountered: