Re: Couldn't we....


Subject: Re: Couldn't we....
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sat Nov 17 2001 - 17:41:41 CST


On Sun, 18 Nov 2001, Martin Sevior wrote:

>
>
> On Thu, 15 Nov 2001, Dom Lachowicz wrote:
>
> > On Thu, 2001-11-15 at 09:32, Kyle wrote:
> > > Couldn't we use GDK_PixBuf for the image importing? The only mainstream
> > > format that it doesn't already support that I know of is BMP. I think
> > > this would be a much easier solution than ImageMagick since we are using
> > > GDK anyways. Any suggestions.
> >
>
> I've been thinking about this some more. I'm fairly sure that imlib1.9.11
> which ships with gnome 1.4 could be used to do the conversions to png.
>
> In fact looking at Hub's jpeg importer, it seems that all our image
> importer needs to do is load into 24 bit RGB image array. Is that right
> Hub? After that we can use libpng to convert that to our internally stored
> png.

Another reply to myself. OK I've looked through the code in gdk-pixbuf and
writing an image importer using gdk-pixbuf along the lines of Hub's jpeg
importer will be quite straight forward. gdk-pixbuf has nice convience
functions to automatically detect the image type in a file and load it
into a GdkPixbuf structure. Once in said structure it is a simple matter
to export it into our png internal format.

Given this I plan to write a Gnome image loading plugin using
Dom and Hub's code as a template.

It will import all the types handled by gnome and since we already link
gdk-pixbuf for gnome, will add 0 to our loading time.

Cheers

Martin



This archive was generated by hypermail 2b25 : Sat Nov 17 2001 - 17:41:54 CST