On Tue, 2002-04-23 at 23:57, Russell St.Fleur wrote:
I created a plug-in for gimp and when given certain parameters add text
to the file. I would like to know if there is a way for the plug-in to
work ie.. add the text to the file via the command line.
This plug-in is stored on a Server and being accessed by other client
machines. I want them to be able to open a window access the server,
run the program without getting the dreaded "Gtk-WARNING **: cannot open
display" error. Just straight command line editing of an image and
outputing it to a format.
This is because Gimp needs an X display to work. Now, there is a way to
work around this, either just point it to some machine that gives it
access to the DISPLAY, or use the virtual framebuffer of the linux
kernel (if the machine runs linux) and run an framebuffer X server on
But you probably dont want to do that, since ImageMagick suits your task
much better; see http://www.imagemagick.org/ - it is a poweful
commandline tool that can also add text to images. And it has C, C++,
Perl and Java API that you can use to write a small program or have it
as part of a larger one. And it does not depend on a $DISPLAY, it can
use truetype fonts directly from files.
I use that myself with my webcam script to add the date and time and
caption for example.
I hope this helps
:: :: Tuomas Kuosmanen :: Art Director, Ximian :: ::
:: :: [EMAIL PROTECTED] :: www.ximian.com :: ::
Gimp-developer mailing list