Reputation:
What are the Pros and Cons of using each of these?
For example, would it be possible to say which one loads the fastest?
Is one resolution, image quality better than the other?
data:image/svg+xml;base64
<img src='data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjI2IDE0ODEiPgogIDxwYXRoIGQ9Ik0wIDEzOTRWODdDMCA0Ni4zIDEzLjMgMTkuOCA0MCA3LjUgNjYuNy00LjggOTguNy4zIDEzNiAyM2wxMDM0IDYzNGMzNy4zIDIyLjcgNTYgNTAuMyA1NiA4M3MtMTguNyA2MC4zLTU2IDgzTDEzNiAxNDU4Yy0zNy4zIDIyLjctNjkuMyAyNy44LTk2IDE1LjUtMjYuNy0xMi4zLTQwLTM4LjgtNDAtNzkuNXoiIGZpbGw9IiMwMDU5ZGQiLz4KIDwvc3ZnPg==''>
VS.
SVG
<svg viewBox="0 0 1226 1481" >
<path d="M0 1394V87C0 46.3 13.3 19.8 40 7.5 66.7-4.8 98.7.3 136 23l1034 634c37.3 22.7 56 50.3 56 83s-18.7 60.3-56 83L136 1458c-37.3 22.7-69.3 27.8-96 15.5-26.7-12.3-40-38.8-40-79.5z" fill="#0059dd"/>
</svg>
VS.
PNG
<img src="https://i.imgur.com/Z3AgRDe.png">
Upvotes: 9
Views: 3624
Reputation: 153
SVG base 64
SVG
PNG
I am a fan of SVG, in fact I am developing a web application that creates, edits and modifies SVGs. In fact, the image that I show is made on an SVG object. To which more objects are added (box, text, circles, etc.)
Upvotes: 0
Reputation: 1
One of the most issue with Base64 is size, increase almost 30% about the original image size.
Upvotes: 0