Re: Image insertion


Subject: Re: Image insertion
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sat Feb 19 2000 - 20:36:29 CST


On Sat, 19 Feb 2000, Daniel Weber wrote:

> sam th wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Sat, 19 Feb 2000, Daniel Weber wrote:
> >
> > > Whenever I try to insert a picture in Abiword, I get an error stating
> > > the file "is not the type it claims to be". I didn't see anything in
> > > bugzilla about it, is anyone else seeing this?
> > >
> > >
> > This is code that I wrote. Currently, AbiWord only supports PNG images.
> > The problem is, if you try to open another type as a png, it will crash
> > libpng. So, it currently looks at the first few bytes and sees if it is
> > an PNG file, and assumes that you thought it was a PNG file. Hence the
> > error message. If this picture was in PNG format, we have a problem, and
> > I will try to fix it.
>
> GIF's and jpegs only at this point. png files seem to work fine. That's
> fine - I can always convert to png. Thanks
>
I think the error message needs to a bit more informative. More along the
lines of "Sorry we import only png's at the moment". If Daniel had that
message he would have known right away what the problem was.

Cheers

Martin



This archive was generated by hypermail 2b25 : Sat Feb 19 2000 - 20:37:12 CST