3 ms·
"relatively small" The library takes half a megabyte under archlinux: https://www.archlinux.org/packages/extra/x86_64/librsvg/ https://www.archlinux.org/packag
by legulere 11y ago
"relatively small"
The library takes half a megabyte under archlinux:
https://www.archlinux.org/packages/extra/x86_64/librsvg/ https://www.archlinux.org/packages/extra/x86_64/librsvg/
It also requires a 1.2 megabyte css parsing library: https://www.archlinux.org/packages/extra/x86_64/libcroco/ https://www.archlinux.org/packages/extra/x86_64/libcroco/
And of course also a 8.8 MB xml parsing library: https://www.archlinux.org/packages/extra/x86_64/libxml2/ https://www.archlinux.org/packages/extra/x86_64/libxml2/
Now compare this with libpng:
https://www.archlinux.org/packages/extra/x86_64/libpng/ https://www.archlinux.org/packages/extra/x86_64/libpng/
half a megabyte and the only real dependency is zlib, which is also in the dependency tree of librsvg
- elcritch 11y agoThe main size is dealing with libxml, but that's readily handled by smaller xml libraries [http://pugixml.org http://pugixml.org]. I mean, maybe you don't want to do SVG on an arduino. Directly comparing SVG and PNG libraries purely based on library size is misleading. PNG's aren't layered, don't contain semantic information, etc. For me librsvg is lightweight since its way better than installing phantomjs as I have been doing to generate embedable PNGs for documents.