Re: perl script question

2000-08-31 Thread Marc Lehmann

On Wed, Aug 30, 2000 at 05:16:48PM -0500, "Michael J. Hammel" 
<[EMAIL PROTECTED]> wrote:
> Is there a way to open an image in Gimp Perl and run filters on it without 
> opening a Canvas window?

Funny question ;) Yes - just don't create a view. In gimp, loading a file
or creating an image will not result in an image window.

> e script will run interactively, but process

I guess your problem is starting the script on the image when it isn't
visible. There are a lot of wazs to accomplish this, for example, yoz could
change the type of the script from  to  and trhe script will
then show a image/drawable secltor. Just starting the script (via the
perl-server) from the commandline will result in the same behaviour.

You could also modify the script to load the image for you, of course.

Or did I misunderstand your question?

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



Re: perl script question

2000-08-30 Thread Kevin Turner

On Wed, Aug 30, 2000 at 05:16:48PM -0500, Michael J. Hammel wrote:
> Is there a way to open an image in Gimp Perl and run filters on it without 
> opening a Canvas window?

IIRC, you don't get a canvas window when you call image_new unless you
deliberately create a new display (that's a seperate procedure).  Note
that I'm working from memory of general PDB workings as of two years ago
and not because I've actually done this with perl, so you might want to
gather some real evidence.  ;)

-- 
Kevin Turner <[EMAIL PROTECTED]> | OpenPGP encryption welcome here
Plug-ins: They make GIMP do stuff.  http://gimp-plug-ins.sourceforge.net/
This list is archived at http://marc.theaimsgroup.com/?l=gimp-developer
To unsubscribe, mail [EMAIL PROTECTED]



perl script question

2000-08-30 Thread Michael J. Hammel

Is there a way to open an image in Gimp Perl and run filters on it without 
opening a Canvas window?  The script will run interactively, but process
needs to run behind the scenes, so to speak.  Is this just a matter of not
calling gimp_displays_flush()?
-- 
Michael J. Hammel   |   Give me the strength to change the things I 
The Graphics Muse   |   can, the grace to accept the things I can't 
[EMAIL PROTECTED]  |   change, and a great big bag of money.
http://www.graphics-muse.com  Deep Thoughts, Jack Handey