News for hackers. Stuff that matters.
Re:We Need A Standard Layered Image Format by eridius on Tuesday April 30, 2013 @06:45PM (#5635366)
We also don't typically use HTML as an interchange format between editors.
Re:We Need A Standard Layered Image Format by itafroma on Tuesday April 30, 2013 @07:04PM (#5635450)
At its core, a layered document is a set of declarations about the constituent parts the document is made up. They link to other objects, like images and fonts. Whether you include everything the document links to into one container or let them hang out in a folder, it doesn't change how layered files are created or interacted with within editors or elsewhere.

So to transmit web pages? Sure, we use HTML as an interchange format. You receive everything about the page to manipulate it, including the locations to where the images and other related files are.

In other words, a layered document is not the same in kind as a JPEG or a GIF, which are flattened images. You need to be able to manipulate a layered document in the same way you could manipulate a Word document or an HTML file.

Whether you use a plain text format like XML or a SQLite database, the end result is going to be the same: in a SQLite database, you could place the component images/fonts into the database as blobs, just as you could technically place the component images/fonts in an XML file as data URIs.

But at least with XML, it's editable as plain text and doesn't require the component assets to be transmitted with the layout-defining file. I much prefer that over a format that dictates everything must be encapsulated within.

Re:We Need A Standard Layered Image Format by justincormack on Wednesday May 01, 2013 @03:20AM (#5636882)
Well ePub is a zip file of HTML documents. So some people do.
Re:We Need A Standard Layered Image Format by eridius on Wednesday May 01, 2013 @02:23PM (#5639818)
Not really. Not only is EPUB not what I would consider an editor interchange document, but the HTML isn't even the format used for the "core" document file. An XML file with the .opf extension is the "core" file that describes how the EPUB works, and the HTML files are actually just content, analogous to the layer data in Gus's sqlite.
Re:We Need A Standard Layered Image Format by eli on Tuesday April 30, 2013 @06:57PM (#5635417)
But that's because HTML has complicated and ambiguous rendering rules, not because everyone hates structured, human-readable index documents.