[XForms] Using Xform in background without display

Jens Thoms Toerring jt at toerring.de
Thu Mar 13 09:12:24 EDT 2008


To subscribers of the xforms list

Hi Jean-Marc,

On Thu, Mar 13, 2008 at 12:50:58PM +0100, Jean-Marc Lasgouttes wrote:
> Jens Thoms Toerring <jt at toerring.de> writes:
> > Are you actually using anything from XForms when you want the
> > program to run without any graphics output? 
> 
> I guess the idea is to use flimage. Does this work without a display?

Mmmm. I have to admit that I didn't went through that part of
XForms more than very superficially yet, so I could be comple-
tely wrong. But a short look at that part of the code shows
that quite a number of Xlib functions are used there, so I
would guess that you can't use that part (which already is
separated out into its own library, libflimage.so) without
having a display (or at least some kind of Xserver that fakes
a display if there's no screen, which using using xvfb might
amount to).

And, as far as my (very limited) understanding goes, all the
functions in flimage are meant to read in a graphics file and
display it on the screen (e.g. on top of a button etc.) or to
write out an image from an X drawable to a file. In both cases
you would need a display.

Since Didier wrote that he just wants to write out jpg files
I guess that he will always need to create some X drawable,
draw something onto it and then write it out. But that would
involve an X drawable. But if he just wants to convert e.g.
a gif image to a jpg I would rather recommend to use some-
thing more suitable in that case, e.g. ImageMagick.

                              Best regards, Jens
-- 
  \   Jens Thoms Toerring  ________      jt at toerring.de
   \_______________________________      http://toerring.de
_______________________________________________
To unsubscribe, send any message to
xforms-leave at bob.usuhs.mil or see: 
http://cweblog.usuhs.mil/mailman/listinfo/xforms
List Archive: http://bob.usuhs.mil/pipermail/xforms and
http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms



More information about the Xforms mailing list