NAME Gimp - Perl extension for writing Gimp Extensions/Plug- ins/Load & Save-Handlers SYNOPSIS my $img = new Image (600, 300, RGB); my $bg = $img->layer_new(600,300,RGB_IMAGE,"BAckground",100,NOTMAL_MODE); $img->add_layer($bg, 1); $img->edit_fill($bg); $img->display_new; DOCUMENTATION The Manpages in html format, the newest version and other information can be found on the Gimp-perl homepage, where you should get an overview over the Gimp-perl extension: http://www.goof.com/pcg/marc/gimp.html Dov Grobgeld has written a nice tutorial as well, you can find it at: http://imagic.weizmann.ac.il/~dov/gimp/perl-tut.html PREREQUISITES To install/use this perl extension, you need to have the following software packages installed installed: Perl5.004 (or higher): While this extension should run fine with older versions (it has been tested with 5.004_04), I work with Perl5.005 or higher, which has much more bugs fixed than the old 5.004. When in doubt, upgrade. The GNU Image Manipulation Program, i.e. The GIMP: ftp://ftp.gimp.org/pub/gimp/ gimp-1.1 (or newer, i.e. CVS) is recommended, but any version since 1.0.2 should do, some features not implemented in 1.0 don't work, though. GTK+, the X11 toolkit: ftp://ftp.gimp.org/pub/gtk/ gtk+-1.2 or higher is recommended, but older versions mostly work (some features not implemented in gtk+-1.0 do not work properly, of course). Gtk, the perl extension for the above: ftp://ftp.gimp.org/pub/gtk/perl/ Gtk-0.5 (or higher) is recommended. You might encounter some problems compiling it for Perl5.004, in that case you might want to try the updated gnome-perl version on the gnome-cvs-server. Seth Burgess has a snapshot of it on his homepage at http://www.gimp.org/~sjburges/. Optionally, you can install PDL (the perl data language), to easily manipulate pixel data. PDL is available at any CPAN mirror, version 1.9906 or higher is recommended. Without PDL, some plug-ins do not work, and accessing raw image data is impossible. General Information about The Gimp can be found at http://www.gimp.org/ INSTALLATION On unix, you should be able to run "perl Makefile.PL" make, make test && make install. To get a listing of configuration options, enter perl ./Makefile.PL --help a straight "perl Makefile.PL" should do the job on most systems, but watch out for warnings. If everything went fine, enter "make", "make test", "make install" and, if you want to install the Perl-Server and some other plug-ins, "make install-plugins" After installation, these perl plug-ins should be visible from with The Gimp (and many, many more): /Xtns/Perl-Server /Filters/Artistic/Windify /Filters/Misc/Prepare for GIF /Filters/Misc/Webify If you don't have unix, you can install linux instead (http://www.linux.org) SUPPORT/MAILING LISTS/MORE INFO There is a mailinglist for general discussion about Gimp-Perl. To subscribe, send a mail with the single line subscribe to gimp-perl-request@lists.netcentral.net. If you want to get notified of new versions automatically, send a mail with the single line: subscribe notify-gimp to majordomo@gcc.ml.org. You can also upload your scripts to the gimp registry at http://registry.gimp.org/, there is a special "version" available for gimp-perl. Scheme is the crappiest language ever. Have a look at Haskell (http://www.haskell.org) to see how functional is done right. (c)1998,1999 Marc Lehmann