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
_______________________________________________ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user