Re: calling Gimp from web pages.

2000-10-26 Thread Tom Rathborne

Chris;

On Thu, Oct 26, 2000 at 01:29:50AM -0400, Tom Rathborne wrote:
> On Wed, Oct 25, 2000 at 04:55:09PM -0500, Chris Brown wrote:
> > Mostly I need to know if there is a way to run the Gimp Perl
> > server without running the Gimp itself and without running X, as
> > the host machine will not have access to the X server.
> 
> I have found that as long as the server can get an X connection when
> it starts, it is not terribly bothered if that X server goes away.

I was wrong about this -- oops. The Perl-Server and script-fu don't
die, but the GIMP dies. If you just do an 'xhost +' to provide a
server then an 'xhost -', the GIMP doesn't die but plugins can't run
because they can't connect.

So, I've switched to Xvfb and everything is running smoothly.

> I can call Gimp from my mod_perl handlers and everything is very
> happy.

It takes my PPC604/132 about 2.5 seconds to render some text with
freetype, add a blurred/adjusted dropshadow and save it as a GIF.
pretty impressive if you ask me.

Cheers,

Tom

-- 
--   Tom Rathborne [EMAIL PROTECTED] http://www.aceldama.com/~tomr/
--  "It's Like A Warzone, Deep Inside Of Me / When My Mind Becomes My Enemy"
-- -- Praga Khan, "My Mind Is My Enemy"



Re: calling Gimp from web pages.

2000-10-25 Thread Tom Rathborne

Chris;

On Wed, Oct 25, 2000 at 04:55:09PM -0500, Chris Brown wrote:
> I maybe a bit confused as to the difference betweent Gimp::Net and
> Gimp::Fu. Can I call Gimp Functions, (the ones in the DB Browser)
> while just using Gimp::Net or do I also have to include Gimp::Fu?

Check plug-ins/perl/examples/example-net and all will become clear.

> Mostly I need to know if there is a way to run the Gimp Perl server
> without running the Gimp itself and without running X, as the host
> machine will not have access to the X server.

I have found that as long as the server can get an X connection when
it starts, it is not terribly bothered if that X server goes away.

I can call Gimp from my mod_perl handlers and everything is very
happy.

Cheers,

Tom

-- 
--   Tom Rathborne [EMAIL PROTECTED] http://www.aceldama.com/~tomr/
--  "It's Like A Warzone, Deep Inside Of Me / When My Mind Becomes My Enemy"
-- -- Praga Khan, "My Mind Is My Enemy"



Re: calling Gimp from web pages.

2000-10-25 Thread Marc Lehmann

On Wed, Oct 25, 2000 at 04:55:09PM -0500, Chris Brown <[EMAIL PROTECTED]> wrote:
> I maybe a bit confused as to the difference betweent Gimp::Net and
> Gimp::Fu.

Gimp::Fu is a convinience interface to gimp-perl, it provides an easy way
to register functions and to create a simple-but-usable user interface for
most plug-ins. Gimp::Net is just an interface module and is loaded
automatically and on demand, so you do not usually need to use it explicitly.

> Can I call Gimp Functions, (the ones in the DB Browser) while
> just using Gimp::Net or do I also have to include Gimp::Fu?

Both are orthogonal to each other. You can call gimp functions without
Gimp::Fu (and also without Gimp::Net, as the mkain gimp module will
automatically load thew appropriate interface module for you).

> Mostly I need to know if there is a way to run the
> Gimp Perl server without running the Gimp

No.

> itself and without running X, as

No.

> the host machine will not have access to the X server.

Many people use Xvfb or Xvnc on their server machines. The next major
version of Gimp (2.0) will be much more modular (and maybe we will soon be
independent of X due to the freetype plug-in).

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |



calling Gimp from web pages.

2000-10-25 Thread Chris Brown

Hi I'm new to this list and I'm here to see if anyone can answer some of
my questions :).

I'm a web developer and I'm trying to use the Gimp for what basically
amounts to a greeting card application, however I'm not having much
success calling the Gimp. 

I'm working in perl and I'm trying to use the Gimp modules.
The application needs to load a JPEG file, write some text onto it and
then print it out to a printer or save it.
And all of that needs to interface with the web (the printer would be
directly connected to the host machine).

I maybe a bit confused as to the difference betweent Gimp::Net and
Gimp::Fu. Can I call Gimp Functions, (the ones in the DB Browser) while
just using Gimp::Net or do I also have to include Gimp::Fu?

Mostly I need to know if there is a way to run the
Gimp Perl server without running the Gimp itself and without running X, as
the host machine will not have access to the X server.

Thanks.
Chris Brown 

-- 
Chris the Christianfreak
http://christianfreak.com

In light of the new campaigns:
If I am elected no one will ever have to do their laundry again!