Hacker News new | ask | show | jobs
by aceofspades19 4790 days ago
And why are we storing binary data? The whole point of SVG is everything is in XML unless I'm very mistaken
2 comments

The author is looking for a container format capable of storing multiple image layers, and one that is capable of storing both vector and raster images.

So you could possibly argue that XML (a la SVG) is the right format to represent the vector files within that container, but it wouldn't be appropriate for the container file itself since binary data really bloats XML.

How else would you propose to store a bitmap.
<points> <point x='2px' y='3px' color='rgba(255,255,255,0)' /> <point x='2px' y='4px' color='rgba(100,255,255,0)' />

    <!--...-->
</points>

heh