RSS/Atom feed Twitter
Site is read-only, email is disabled

Trouble calling filter plug-ins from script-fu console

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Trouble calling filter plug-ins from script-fu console Sam Kuper 05 Nov 19:30
  Trouble calling filter plug-ins from script-fu console saulgoode@flashingtwelve.brickfilms.com 05 Nov 23:19
Sam Kuper
2007-11-05 19:30:24 UTC (about 17 years ago)

Trouble calling filter plug-ins from script-fu console

I want to apply a filter plug-in via the script-fu console, but this doesn't seem to work. I have tried with several plug-ins, with no success. I have tried this on GIMP 2.0.5 on RedHat Enterprise Linux and GIMP 2.4.1 on Windows XP SP2.

Let's take a simple example. Suppose I have a .png image open in GIMP, and it is image 4. It has only one layer. It has an excessive white border, so I want to autocrop it.

If I go to the script-fu console and enter:

(plug-in-autocrop 1 4 0)

In 2.4.1 on WinXP I get a message "Error: Procedure execution of plug-in-autocrop failed" and the error console displays a series of errors:

" GIMP Error Procedure 'gimp-drawable-width' has been called with an invalid ID for argument 'drawable'. Most likely a plug-in is trying to work on a layer that doesn't exist any longer.

GIMP Error Procedure 'gimp-drawable-height' has been called with an invalid ID for argument 'drawable'. Most likely a plug-in is trying to work on a layer that doesn't exist any longer.

GIMP Error Procedure 'gimp-drawable-bpp' has been called with an invalid ID for argument 'drawable'. Most likely a plug-in is trying to work on a layer that doesn't exist any longer.

GIMP Error Plug-in crashed: "autocrop.exe"
(D:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins\autocrop.exe)

The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side."

If I use a number other than 0 for the drawable, however (I've tried every integer from -2 to 2) then I still get an error. (NB. on Linux the situation is no better, but the error messages are different.)

I would be very grateful for any help you can offer.

Many thanks, Sam Kuper

saulgoode@flashingtwelve.brickfilms.com
2007-11-05 23:19:19 UTC (about 17 years ago)

Trouble calling filter plug-ins from script-fu console

You must supply the appropriate drawable ID to the plug-in. Per your example:

(plug-in-autocrop 1 4 (car (gimp-image-get-active-layer 4)))

Quoting Sam Kuper :

I want to apply a filter plug-in via the script-fu console, but this doesn't seem to work. I have tried with several plug-ins, with no success. I have tried this on GIMP 2.0.5 on RedHat Enterprise Linux and GIMP 2.4.1 on Windows XP SP2.

Let's take a simple example. Suppose I have a .png image open in GIMP, and it is image 4. It has only one layer. It has an excessive white border, so I want to autocrop it.

If I go to the script-fu console and enter:

(plug-in-autocrop 1 4 0)

In 2.4.1 on WinXP I get a message "Error: Procedure execution of plug-in-autocrop failed" and the error console displays a series of errors:

...

If I use a number other than 0 for the drawable, however (I've tried every integer from -2 to 2) then I still get an error. (NB. on Linux the situation is no better, but the error messages are different.)