GIMP Chat
http://gimpchat.com/

Editing scripts
http://gimpchat.com/viewtopic.php?f=9&t=17628
Page 1 of 1

Author:  nixnine [ Mon Aug 05, 2019 9:10 am ]
Post subject:  Editing scripts

Attachment:
Screenshot_2019-08-05_08-56-34.png
Screenshot_2019-08-05_08-56-34.png [ 649.5 KiB | Viewed 7456 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?

Author:  racer-x [ Mon Aug 05, 2019 9:26 am ]
Post subject:  Re: Editing scripts

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

Author:  nixnine [ Mon Aug 05, 2019 9:48 am ]
Post subject:  Re: Editing scripts

Got a copy of the script? To compare?

Author:  nelo [ Mon Aug 05, 2019 10:06 am ]
Post subject:  Re: Editing scripts

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.

Author:  rich2005 [ Mon Aug 05, 2019 12:56 pm ]
Post subject:  Re: Editing scripts

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
Quote:
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.

Attachment:
cartoonize.jpg
cartoonize.jpg [ 222.93 KiB | Viewed 7410 times ]


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

Attachments:
CarTOONize-linux-greyc-64-bit.zip [95.94 KiB]
Downloaded 288 times

Author:  Pocholo [ Mon Aug 05, 2019 11:30 pm ]
Post subject:  Re: Editing scripts

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.

Author:  MareroQ [ Wed Aug 07, 2019 12:58 am ]
Post subject:  Re: Editing scripts

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"

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...

Attachments:
Cartonize Gimp 2.10.png
Cartonize Gimp 2.10.png [ 14.56 KiB | Viewed 7325 times ]
210_effects_CarTOONize.zip [211.54 KiB]
Downloaded 318 times

Author:  sallyanne [ Wed Aug 07, 2019 2:27 am ]
Post subject:  Re: Editing scripts

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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/