Dov's tutorial is a bit out of date. You need to
add the following to the top of the file, or use
the OO method to access it:
use Gimp qw(:auto);
$img = Gimp->image_new(params..)
I don't think the parameters have changed since he
wrote it, but check the DB Browser to be sure.
--- Trevor Wood <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm trying to learn Perl-Fu using Dov Grobgeld's
> "<Toolbox>/Xtns/Perl-Fu/Tutorial/Img Uni" script.
> The script seems to be
> registered fine and I get an input dialog box.
> However, after clicking
> "Okay" on the dialog, I get the following error in
> the body of the
> uni: Undefined subroutine &main::gimp_image_new
> called at
> /home/twood/.gimp-1.1/plug-ins/uni line 10. (ERROR)
> The corresponding line in the script is
> # Create a new image
> $img = gimp_image_new($size, $size, RGB);
> If I don't have everything installed correctly, I
> wouldn't think that it
> would register and give the dialog. So why is the
> gimp_image_new function
> not recognized? The script uses the Gimp and
> Gimp::Fu modules.
> Thanks for your help,
> PS: Here's what I have installed:
> gimp -v ==> GIMP version 1.1.17
> perl -v ==> This is perl, version 5.005_03 built for
> dpkg --list | grep "libgtk" ==>
> libgtk-perl 0.7002-1 Perl module for the
> gtk+ library
> libgtk1.2 1.2.8-1 The GIMP Toolkit
> set of widgets for X
Do You Yahoo!?
>From homework help to love advice, Yahoo! Experts has your answer.