Re: Gimp::Fu ?? gimp version 1.1.11

1999-12-11 Thread Robert J. Brown

> "josvanr" == Erunantion  <[EMAIL PROTECTED]> writes:

>> More probable: I'm just not doing things correctly. So, I'd
>> very much appreciate it, if somebody could get me started by
>> sending me a skeleton perl-gimp script that non-interactively
>> creates an image, and saves it, maybe someone has this working.

I do not know whether they use scheme or perl, but the folks at
www.flamingtext.com certainly do a fine job of batch scripting gimp -- 
from a cgi script, no less!  You might try to ask them.

-- 
  "And there came a writing to him from Elijah"  [2Ch 21:12]  
R. J. Brown III  [EMAIL PROTECTED] http://www.elilabs.com/~rj  voice 847 543-4060
Elijah Laboratories Inc. 457 Signal Lane, Grayslake IL 60030  fax 847 543-4061
-  M o d e l i n g   t h e   M e t h o d s   o f   t h e   M i n d  --



Re: Gimp::Fu ?? gimp version 1.1.11

1999-12-11 Thread Marc Lehmann

On Sat, Dec 11, 1999 at 06:49:07PM +0100, josvanr <[EMAIL PROTECTED]> wrote:
> stable software, or is it in the early development stages? 

You asked for an unstable version of Gimp, you got it ;)

> Also, maybe it could be a version problem: I'm using gimp 1.1.11

It is most definitely a version problem. Perl is still suffering midly
from the many changes since 1.1.10 in the PDB, the i18n changes and some
internal changes.

The current version in cvs should have all scripts working again.

> More probable: I'm just not doing things correctly.

Not probable with 1.1.11. However, gimp-perl's api has changed subtly
since 1.0, sou many tutorials no longer apply (at leats not without some
minor changes).

> So, I'd very much appreciate it, if somebody could get me started
> by sending me a skeleton perl-gimp script that non-interactively
> creates an image, and saves it, maybe someone has this working.

That should do:

   use Gimp;
   Gimp::init;
   my $img = new Image (300, 200, RGB);
   my $layer = $img->layer_new(30 , 20, RGB_IMAGE,"Background", 100, NORMAL_MODE);
   $layer->add_layer(0);
   $layer->file_xpm_save(("/tmp/test.xpm")x2);
   $img->delete;

[works only from the commandline, of course]

For further questions I'd like to direct you to the gimp-perl list (see
http://gimp.pages.de/ for more info), where many people are who had the
same initial problems ;)

> Maybe an alternative would be, to make a perl script that generates a
> scheme script, and then run this manually from within gimp...

Would work as well interesting idea ;)

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



Re: Gimp::Fu ?? gimp version 1.1.11

1999-12-11 Thread Erunantion

On Sat, 11 Dec 1999, josvanr wrote:

> Hi!
> 
> I want to write a perl script, for translating blackbox window 
> manager themes into fvwm2 themes. To do this, the blackboxrc 
> file has to be parsed, and some images have to be automatically
> generated from this.
> 
> Now, I was thinking of using the perl interface of gimp to do 
> this, as I don't know scheme, and because using perl, the script
> can be run entirely non-interactive from the command line. 
> 
> I read some man pages, a tutorial and the chapter in the 
> gimp manual on Gimp::Fu, but all the scripts produce are error 
> messages (the example scripts in the tutorial also don't work).
> 
> So I was wondering, this perl interface of gimp, is it an established,
> stable software, or is it in the early development stages? 
> Also, maybe it could be a version problem: I'm using gimp 1.1.11

Well, 1.1.11 is a development version of gimp, so that may be part of the
problem.

> More probable: I'm just not doing things correctly. So, I'd very much
> appreciate it, if somebody could get me started by sending me a
> skeleton perl-gimp script that non-interactively creates an image, and
> saves it, maybe someone has this working.

Unfortunately, I never played around with this kind of stuff. Though maybe
I will, now that I know of its existence.

> Maybe an alternative would be, to make a perl script that generates
> a scheme script, and then run this manually from within gimp...
> 
> 
> regards,
> 
> Jos van Riswick
> 
> [EMAIL PROTECTED]
> 
> NOTE: please send an additional reply to my personal email 
> address, as I'm not yet subscribed to the mailing list.
> 

==
Jonathan Erbe   aka Erunantion
 The Annals of Middle-earth 
   <"http://members.tripod.com/~eruantalon/tolkien.html">
 E-mail me at <"mailto:[EMAIL PROTECTED]">
==



Gimp::Fu ?? gimp version 1.1.11

1999-12-11 Thread josvanr

Hi!

I want to write a perl script, for translating blackbox window 
manager themes into fvwm2 themes. To do this, the blackboxrc 
file has to be parsed, and some images have to be automatically
generated from this.

Now, I was thinking of using the perl interface of gimp to do 
this, as I don't know scheme, and because using perl, the script
can be run entirely non-interactive from the command line. 

I read some man pages, a tutorial and the chapter in the 
gimp manual on Gimp::Fu, but all the scripts produce are error 
messages (the example scripts in the tutorial also don't work).

So I was wondering, this perl interface of gimp, is it an established,
stable software, or is it in the early development stages? 
Also, maybe it could be a version problem: I'm using gimp 1.1.11

More probable: I'm just not doing things correctly.
So, I'd very much appreciate it, if somebody could get me started
by sending me a skeleton perl-gimp script that non-interactively
creates an image, and saves it, maybe someone has this working.

Maybe an alternative would be, to make a perl script that generates
a scheme script, and then run this manually from within gimp...


regards,

Jos van Riswick

[EMAIL PROTECTED]

NOTE: please send an additional reply to my personal email 
address, as I'm not yet subscribed to the mailing list.