Re: [Tuxpaint-users] Kid Pix templates - anyone have any?
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2009-10-08 18:09:59
|
On Thu, Oct 08, 2009 at 06:00:23PM +0100, John Popplewell wrote:
> Oh, go on then :-) Send them to me with any info you've gleaned about
> the format and I'll have a crack at it. I've recently been fiddling with
> saving PNG files out on Windows and I'm sure I can peek at some JPEG
> loading code from somewhere.
I posted about it to the 'tuxpaint-devel' mailing list yesterday, but
it pretty much looks like:
* 60 bytes of header junk that can be thrown away
(looks like Apple Mac OS resource fork stuff)
* a JPEG image
* more stuff (e.g., a thumbnail, also as a JPEG) that can safely thrown away
So I just remove the first 60 bytes, loaded the file as a JPEG, and saved
it back out as a PNG. (Or, in the case of what I'm doing internally in
Tux Paint now, to support KPX files: I simply pass the JPEG along to the
image-loading routines, and it loads it as a Starter image!)
> Would a command-line program that converted all *.kpx files in a
> directory be sufficient?
I believe so! I think, for this school at least, they'd be happy enough
with a one-time conversion, and then they can move to Tux Paint.
> PS I'd bundle the source and any associated files for it, with it
That'd be awesome. Thanks!
-bill!
|