News for hackers. Stuff that matters.
Re:We Need A Standard Layered Image Format by Semiapies on Tuesday April 30, 2013 @09:09PM (#5635895)
This is an interesting idea, though I cringe a little at using a relational database as a key/value store (as in the case of layer_attributes).

I wonder whether it would be more useful to just represent the whole thing as a big JSON structure with base64 blobs. Each layer can be an object in the "layers" array with the attributes as keys.

Re:We Need A Standard Layered Image Format by gilgoomesh on Tuesday April 30, 2013 @09:32PM (#5635958)
Layered images can easily grow to gigabytes in size. You do not want to store that much information in a format like JSON that must be opened into memory, parsed and stored in native objects. SQLite is RAM efficient and quick to open, even at large file sizes.
Re:We Need A Standard Layered Image Format by Semiapies on Tuesday April 30, 2013 @10:09PM (#5636063)
Fair enough - I rarely work much with images, so didn't even think of size.