borodean / postcss-assets

An asset manager for PostCSS
MIT License
537 stars 32 forks source link

Wrong size of svg #33

Closed jonnitto closed 8 years ago

jonnitto commented 9 years ago

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 commented 8 years ago

@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 commented 8 years ago

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

borodean commented 8 years ago

@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?