On 11 Dec 2000, Lars Gullik Bjønnes wrote:

> Baruch Even <[EMAIL PROTECTED]> writes:
> 
> | On Mon, 11 Dec 2000, John Levon wrote:
> | 
> | > On Mon, 11 Dec 2000, Baruch Even wrote:
> | > 
> | > > On Mon, 11 Dec 2000, John Levon wrote:
> | > > 
> | > > > Baruch, how does ImageMagick render EPS figures ? Does it really have its
> | > > > own renderer, or does it call gs to do the job ?
> | > > 
> | > > I believe it uses ghostscript, but it uses it to convert to some bitmap
> | > > format and then uses internal methods to convert it to the requested
> | > > format.
> | > 
> | > Well isn't it a bit silly to use ImageMagick to use ghostscript  for the
> | > common case of rendering EPS figures ?
> | 
> | The thing is that I was requested by Lars to avoid the gs rendering way
> | (at least for the initial version) due to the many problems that it
> | creates.
> 
> That was: "avoid gs to render _os_ screen". If you want to use gs to
> create one of the formats the gui lib uses, be my guest.

That was how I got it, but I also make sure it will work for XForms 0.88,
because thats what I use, and it is still considered a supported version.

> XForms understands several
> Qt understands even more
> and I bet Gnome supports a heap too.

Gnome supports quite a few by using libraries where they are available and
converters where not (effectively imlib uses ImageMagick to do its magic
loading).

> | The trouble that exists, is that ghostscript can be used either to create
> | jpeg (or gif) or it can load to X11 pixmap, but Xforms doesn't load jpegs
> | and gifs (at least not in the 0.88 version), so it left me with only the
> | loading directly to pixmaps, which is as you know problematic.
> 
> Please don't design for 0.88, but for 0.89 and other libs that
> understand several formats.

I currently design for everything, I prefer to use ImageMagick over gs
since, this way I won't force the throwing away of XForms 0.88, If I use
gs for ps->jpg and then load that, I throw away the XForms 0.88 support. I
suppose that this is unacceptable.

I do not however, downgrade my code just to support 0.88
It will be possible to write an image loader to do things like they are
done now, and it will be possible to write an image loader that uses gs to
convert to jpeg and load it with 0.89, this way you get everyone happy,
there is backward support for those who stay behind and there is new and
better working code for those who can and will upgrade their XForms, or
add a new library (like imlib).

I'm trying not to limit anyone, but I'm not sacrificing anything for this.

-- 
  Baruch Even

http://techst02.technion.ac.il/~sbaruch/   (My Site)
http://www.redrival.com/jindor/            (My brothers AD&D site)

" Learn to laugh ... it's the path to true love! " 
   - The Angel in the movie Michael


Reply via email to