Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Editing scripts

Mon Aug 05, 2019 9:10 am

Screenshot_2019-08-05_08-56-34.png
Screenshot_2019-08-05_08-56-34.png (649.5 KiB) Viewed 7457 times


I am editing some non-working scripts and have come to an edit for which I have not found any information. As I try to run several scripts I am getting an unbound variable error, the biggest being the WHITE-IMAGE-FILL, which I believe I have resolved. But this following error, I'm not sure how to proceed.

Can someone advise on editing this?

EDIT: Well, this may be bigger than I thought. I correct on and another error pops up. Now on another script after the white-image-fill edit I am getting another, trans-image-fill. Are these scripts no longer usable in GIMP or do they require extensive editing?

Re: Editing scripts

Mon Aug 05, 2019 9:26 am

Cartoonize.scm works fine here in Gimp 2.10.12. I only tested default values.

Re: Editing scripts

Mon Aug 05, 2019 9:48 am

Got a copy of the script? To compare?

Re: Editing scripts

Mon Aug 05, 2019 10:06 am

you' re probably missing the greycstoration plug-in.
Not sure if it's still around. I think it was replaced by GMIC and its functions.

Re: Editing scripts

Mon Aug 05, 2019 12:56 pm

For everyone.

Paul Sherman http://www.gimphelp.org latest fix for those old scripts.

Script-fu package update - 50th release
Saturday, 05/11/2019: (edit - thats May for us not in the US)
Removed all deprecation warnings,
readying for GIMP 3 release :-)
114 scripts


I do not advise installing all of them, get the zip unpack and carefully choose just the ones you consider essential.

@nixnine
Can someone advise on editing this?
EDIT: Well, this may be bigger than I thought. I correct on and another error pops up. Now on another script after the white-image-fill edit I am getting another, trans-image-fill. Are these scripts no longer usable in GIMP or do they require extensive editing?


There is a good chance that what you require has already been fixed by Paul Sherman.

However, always a however ;)

CarTOONize.scm (210_effects_CarTOONize.scm in the above) runs ok without greycstoration plugin. it is an optional pre-filter.

You can use greycstoration plugin in linux. As a stand-alone plugin it works fine. One of my favourites from older times. Unfortunately it registers in a strange way, with no parameters, so it applies only defaults when called from a script. There is a small difference with it on / off. but in my opinion not enough for the bother.

Want to try it. Should work with your 'buntu. Unzip the attached, CarTOONize-linux.scm goes in ~/.config/GIMP/2.10/scripts greycstoration64 goes in ~/.config/GIMP/2.10/plug-ins.

cartoonize.jpg
cartoonize.jpg (222.93 KiB) Viewed 7411 times


Note: the script still fails if you enable 'Halftone' - IMHO time to dump these old scripts.

Re: Editing scripts

Mon Aug 05, 2019 11:30 pm

I been having for years the "Greycstoration plugin" from "Photocomix-resources" at
https://www.deviantart.com/photocomix-r ... n-74248127

Still works for Gimp 2.10. See if is useful for you.

Re: Editing scripts

Wed Aug 07, 2019 12:58 am

It is probably still a temporary update - more changes are needed because it contains references to old plugins (greyc, gmic, unsharp mask) and a lot of outdated procedures (are acting temporarily):

WARNING: Plug-in "script-fu.exe"

Code:
called deprecated procedure 'gimp-image-raise-layer'.
It should call 'gimp-image-raise-item' instead!

called deprecated procedure 'gimp-levels'.
It should call 'gimp-drawable-levels' instead!

called deprecated procedure 'gimp-levels-stretch'.
It should call 'gimp-drawable-levels-stretch' instead!

called deprecated procedure 'gimp-brightness-contrast'.
It should call 'gimp-drawable-brightness-contrast' instead!

called deprecated procedure 'gimp-image-add-layer'.
It should call 'gimp-image-insert-layer' instead!

called deprecated procedure 'gimp-edit-named-paste-as-new'.
It should call 'gimp-edit-named-paste-as-new-image' instead!

called deprecated procedure 'gimp-desaturate-full'.
It should call 'gimp-drawable-desaturate' instead!

called deprecated procedure 'gimp-threshold'.
It should call 'gimp-drawable-threshold' instead!

called deprecated procedure 'gimp-invert'.
It should call 'gimp-drawable-invert' instead!

called deprecated procedure 'gimp-convert-rgb'.
It should call 'gimp-image-convert-rgb' instead!


Old 32bit plugins (unsharp-mask.exe for "Halftone" and greycstoration.exe) work well for me and are attached.
All changes (updating of procedures) are about one hour of work - I don't know if it was worth it...

Re: Editing scripts

Wed Aug 07, 2019 2:27 am

rich2005 wrote:For everyone.

Paul Sherman http://www.gimphelp.org latest fix for those old scripts.

Script-fu package update - 50th release
Saturday, 05/11/2019: (edit - thats May for us not in the US)
Removed all deprecation warnings,
readying for GIMP 3 release :-)
114 scripts


I do not advise installing all of them, get the zip unpack and carefully choose just the ones you consider essential.


Must have a closer look at these when I get home
Post a reply