The main size is dealing with libxml, but that&#x27;s readily handled by smaller xml libraries [<a href="http:&#x2F;&#x2F;pugixml.org" rel="nofollow">http:&#x2F;&#x2F;pugixml.org</a>]. I mean, maybe you don&#x27;t want to do SVG on an arduino.<p>Directly comparing SVG and PNG libraries purely based on library size is misleading. PNG&#x27;s aren&#x27;t layered, don&#x27;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.