Re:We Need A Standard Layered Image Format
by arielpts on Tuesday April 30, 2013 @09:17PM
(#5635915)
XML is a really bad format for containing large chunks of binary data (bitmap)
[ Parent
| on HN ]
Re:We Need A Standard Layered Image Format
by WiseWeasel on Wednesday May 01, 2013 @04:28AM
(#5637010)
The XML can store references to the binary chunks in standard formats though, alongside the vector shapes and filters.
<svg viewBox="## ## ## ##">
<image xlink:href="layer1.png" x="##" y="##" width="##" height="##"/>
<image xlink:href="layer2.jpg" x="##" y="##" width="##" height="##"/>
<rect x="##" y="##" width="##" height="##" fill="red"/>
</svg>
All that's left is to standardize a way to package it.Thats actually a good, along with the fake .zip extension.
Re:We Need A Standard Layered Image Format
by aceofspades19 on Tuesday April 30, 2013 @10:10PM
(#5636067)
And why are we storing binary data? The whole point of SVG is everything is in XML unless I'm very mistaken
Re:We Need A Standard Layered Image Format
by shuzchen on Wednesday May 01, 2013 @01:12AM
(#5636568)
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.
Re:We Need A Standard Layered Image Format
by supercoder on Tuesday April 30, 2013 @10:56PM
(#5636200)
How else would you propose to store a bitmap.