Subject: Re: Couldn't we....
From: Kyle Davis (kyled@blueriver.net)
Date: Sun Nov 18 2001 - 11:41:54 CST
Martin Sevior wrote:
>
>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
>
>
>
I am glad that you guys like the gdk-pixbuf idea. Thats more of what I
was aiming at with the
whole idea. Anyways what I mentioned of the BMP format isn't completely
correct. It does
support BMP picture files to a point. The catch is that so far, in my
coding in other projects,
when gdk-pixbuf catches a corrupted BMP file it seems to bomb. I haven't
found a way to
catch it. Just a note if this is the way that we plan to take this in
AbiWord. If somebody knows
a way please let me know.
Thanks,
Kyle
This archive was generated by hypermail 2b25 : Sun Nov 18 2001 - 11:47:32 CST