Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Wrong size of svg #33

Closed
jonnitto opened this issue Oct 7, 2015 · 3 comments
Closed

Wrong size of svg #33

jonnitto opened this issue Oct 7, 2015 · 3 comments

Comments

@jonnitto
Copy link

jonnitto commented Oct 7, 2015

If I have a svg with a viewbox (e.g "0 0 130 19") the result of size() ist not "130px 19px". It is "100px 100px", because of the attributes width="100%" height="100%".

@borodean
Copy link
Owner

borodean commented Nov 1, 2015

@jonnitto that's an issue with image-size. I'd submit a pull request fixing it, but the project looks abandonded. I'm going to migrate postcss-assets to calipers. It doesn't have SVG support yet, but is actively developed so I'm going to contribute them.

@borodean
Copy link
Owner

borodean commented Nov 1, 2015

@jonnitto so I wouldn't expect a fix for this until calipers supports SVG.

@borodean
Copy link
Owner

@jonnitto finally, the new version of image-size resolving this issue got released! Should be fixed in Assets 3.0.3, could you verify it works for you?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants