i'm using mandrake 9.0 and gimp 1.2.3 , removed mail() in exit,
but the saved logo is totally different than the gimp do interactively.
>The only solution is to avoid script-fu whereever possible. It has been
>horribly buggy since many years (I don't remember it being working
>ever). But obviously it's much more fun to blame gimp-perl for bugs in
>script-fu, or claim thats cript-fu was never written to be used as a
>gimp-plug-in, or other fun stuff.
ok but io want to create logos using existing script-fu logo script?
it's possible ????
I want to do serious scripting work with gimp, similar to cool text.com,
can you help me to decide in what direction i should go ?
I have not obtained deterministic results till now.
Script-fu, perl-fu , interactions between them, outdated documentations ???
----------
use Gimp ":auto";
use Gimp::Fu;
use strict;
sub net {
}
Gimp::init;
Gimp::on_net(\&net);
Gimp::set_trace (TRACE_ALL);
my $i=0;
system ("rm -f image_1.png");
script_fu_alien_glow_logo("hello hello $i", "150",
"-*-utopia-bold-r-*-*-150-*-*-*-*-*-*-*", [255,0,0] );
my $img = &gimp_image_list();
my $fname = "image_1.png";
my $activelayer= &gimp_image_flatten($img);
file_png_save(RUN_NONINTERACTIVE, $img, $activelayer,
$fname, $fname, 0, 9, 0, 0, 0, 0, 0);
# Handle over control to gimp
exit;
On Wed, 26 Feb 2003 19:29:43 +0100
<[EMAIL PROTECTED] ( Marc) (A.) (Lehmann )> wrote:
> On Thu, Feb 20, 2003 at 12:11:29AM +0100, Valter Mazzola <[EMAIL PROTECTED]> wrote:
> > Hello Marc , i want to automate logo creation
> > with the script
> >
> > exit main();
>
> That's the problem. If you use Gimp::init then you should not call main.
>
> --
> -----==- |
> ----==-- _ |
> ---==---(_)__ __ ____ __ Marc Lehmann +--
> --==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e|
> -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
> The choice of a GNU generation |
> |
--
Valter Mazzola - Software/Databases for Enterprise Web Sites
Java, Jsp, ASP, PHP, PERL, Mod_Perl, PL/SQL, Apache,IIS
C/C++, Oracle, SQL Sever, PostgreSQL, MySQL, Access.
http://SitiDinamici.com/
Phone:(+39) 347/129-07-16. Fax:(+39) 02/700-539-403
On Wed, 26 Feb 2003 19:46:43 +0100
<[EMAIL PROTECTED] ( Marc) (A.) (Lehmann )> wrote:
> On Mon, Feb 24, 2003 at 06:38:42PM +0100, Sven Neumann <[EMAIL PROTECTED]> wrote:
> > I'd say the bug is in your script. But then you could argue that the
> > bug is in gimp-perl since it's syntax defers from the one that is
> > documented :-(
>
> I would prefer if people who could know it better would stop claiming such
> bullshit. The perl-syntax is well-documented, and even if you insist on
> using the rather idiotic PDB-syntax, it does work.
>
> Also, it should be clear even to you that some languages look diferent
> to others. I remember that a PDB call uses different syntax in C than in
> script-fu, for example.
>
> Yes, both might be documented, and the same is true for the perl
> interface. Since you certainly _are_ aware of all that, what's your point?
>
> Maybe I should add dummy array-length arguments to all calls involving
> arrays, because other languages can't handle that?
>
> > > file_png_save(RUN_NONINTERACTIVE, $img, $activelayer,
> > > $fname, $fname, 0, 9, 0, 0, 0, 0, 0);
> >
> > in gimp-perl, you need to omit the image if the drawable
> > ($activelayer) is already specified.
>
> Actually, you don't. Actually, the script works fine on a standard debian
> installation (gimp-1.2 1.2.3-2, with the debian gimp-pelr etc..), WHEN I
> add sleeps at the right place.
>
> What's buggy is, again, script-fu, which returns long before the script
> has run. And the script doesn't work unless you create another image,
> because it doesn't like image ids of zero.
>
> The only solution is to avoid script-fu whereever possible. It has been
> horribly buggy since many years (I don't remember it being working
> ever). But obviously it's much more fun to blame gimp-perl for bugs in
> script-fu, or claim thats cript-fu was never written to be used as a
> gimp-plug-in, or other fun stuff.
>
> Boys, I am really fed up with that never-ending and mindless
> perl-bashing. If you can't try to help people without shoveling mistakes
> and bugs around, then please, keep your mouth shut. Or at leats use your
> brain once in a while.
>
> Blaming perl is *not* the solution.
> Blaming script-fu *is* right.
> Fixing script-fu *is* the solution.
>
> --
> -----==- |
> ----==-- _ |
> ---==---(_)__ __ ____ __ Marc Lehmann +--
> --==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e|
> -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
> The choice of a GNU generation |
> |
--
Valter Mazzola - Software/Databases for Enterprise Web Sites
Java, Jsp, ASP, PHP, PERL, Mod_Perl, PL/SQL, Apache,IIS
C/C++, Oracle, SQL Sever, PostgreSQL, MySQL, Access.
http://SitiDinamici.com/
Phone:(+39) 347/129-07-16. Fax:(+39) 02/700-539-403
_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer