Re: [Tuxpaint-devel] Changes in the label .dat file
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2009-12-07 23:15:45
|
On Tue, Dec 08, 2009 at 12:03:33AM +0100, Pere Pujal i Carabantes wrote: > Do you mean one png for each label? Doubtful. :) > Currently there is no limit for the > number of labels one can put in each draw. > or instead store all the label data in the main png? > > Currently in cvs we use: > .tuxpaint/saved/xxxx.png --> the main png whith the labels applied as > plain text. > .tuxpaint/saved/xxxx.dat -->the traditional .dat file (for starter, > mirror...) > .tuxpaint/saved/.label/xxxx.png the image without the labels. > .tuxpaint/saved/.label/xxxx.dat the info about the labels. > .tuxpaint/saved/.thumbs/xxxx.png the thumbnail > > It will be good if we reach to reduce the amount of files involved on a > draw. It would be, but a few things: (1) is it possible to cram unlimited extra info into a PNG? (particularly the label text/position/color/size/etc. data) (2) other than being a little bit of effort to keep track of inside Tux Paint's codebase, who is this bothering? (that's a serious question ... in terms of sharing an image to your relatives, for example, you just sent them the 'main' PNG; do people really share (individual) images across installations of Tux Paint?) Would bundling it all together (either into our own Tux Paint file format *shudder* or something like a ZIP (like Java JARs or EPUB ebooks)) be more suitable? Keep in mind we'd want to keep backwards-compatibility, so we'd at least need to know how to load all of that data, even if we no longer saved new files out that way. (And due to that, I feel like it's not worth the effort.) -bill! |