It is currently Mon Sep 21, 2026 1:23 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Script Vignette not working in 2.10.8
PostPosted: Mon Nov 19, 2018 11:06 am  (#1) 
Offline
GimpChat Member

Joined: May 17, 2012
Posts: 78
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Basic Level

List any relevant plug-ins or scripts:
vignette.scm



Earlier I used the vignette.scm in 2.8.22 and it worked perfect. I like this script because you can yourself define how the area for the vignette shall looks.
After installing 2.10.8 I got a error message about the command NORMAL!
I send the script file here also so anyone who can handle script can check. Thanks in advance.
Goran U


Attachments:
vignette_0(1).scm [4.31 KiB]
Downloaded 134 times
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Mon Nov 19, 2018 11:46 am  (#2) 
Offline
GimpChat Member

Joined: Mar 06, 2015
Posts: 308
une wrote:
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Basic Level

List any relevant plug-ins or scripts:
vignette.scm



Earlier I used the vignette.scm in 2.8.22 and it worked perfect. I like this script because you can yourself define how the area for the vignette shall looks.
After installing 2.10.8 I got a error message about the command NORMAL!
I send the script file here also so anyone who can handle script can check. Thanks in advance.
Goran U




Hi Gimp user

There is the Vignette effect inside the filters of the software.
Filters -> Light and shadows -> Vignette.
See attached picture.

Doron.


Attachments:
Vignette.jpg
Vignette.jpg [ 794.93 KiB | Viewed 4494 times ]


Last edited by doronf2 on Mon Nov 19, 2018 11:59 am, edited 1 time in total.
Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Mon Nov 19, 2018 11:58 am  (#3) 
Offline
GimpChat Member

Joined: May 17, 2012
Posts: 78
Yes, but you can not yourself define the path for the vignette
Goran U


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Mon Nov 19, 2018 12:14 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
The function mentioned by Doron is not a script, is a native GEGL function, and the parameter used to create the area of the vignette is (mainly) the radius.
Attachment:
Cattura.PNG
Cattura.PNG [ 795.7 KiB | Viewed 4490 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Mon Nov 19, 2018 1:40 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
Firstly you can use Tin Tran's Constantize plugin on the script,
you can get it here:
https://gimplearn.net/viewtopic.php/GIM ... onstantize

Then open the script file with an editor and in line 60 replace

NORMAL
with
LAYER-MODE-NORMAL-LEGACY


reload script-fu or close and open GIMP and it should work.

Should @Tim read this:
The plugin doesn't seem to grab just 'NORMAL' … can this be added?

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 3:55 am  (#6) 
Offline
GimpChat Member

Joined: May 17, 2012
Posts: 78
Hello again,
I run the pyton script and than I change row 60 from Normal to .....
Bur I will have this error message Error: eval: unbound variable: NORMAL
I have updated the script and also restarted Gimp
Any help ?
Thanks
Goran U


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 8:55 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Une,
I did what Nelo said and the script works, no errors.
Are you sure to have applied exactly Nelo's suggestions?
Anyhow I attach here the working version
Attachment:
vignette_0(1).scm [4.32 KiB]
Downloaded 155 times

_________________
"Where am I ?"


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 8:57 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
PS: I used LAYER-MODE-NORMAL in my version, it shouldn't make any difference.

_________________
"Where am I ?"


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 11:36 am  (#9) 
Offline
GimpChat Member

Joined: May 17, 2012
Posts: 78
I have copied the new file to the script library, restarted Gimp , made a path and then run the vignette script.
The script start and make the new layers but then I will have

Plug-in 'Vignette' left image undo in inconsistent state, closing open undo groups.

and

Fel vid körning av script-fu-vignette: (error when running ...)

Error: Procedure execution of plug-in-gauss-iir failed on invalid input arguments: Proceduren ”plug-in-gauss-iir” har anropats med värdet ”1920,000000” för argumentet ”radius” (nr. 4, typ gdouble). Det här värdet är utanför intervallet.
(translated by me: This value is outside the interval)

Bye
Goran U


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 12:46 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
It works on my PC.
If you have so many troubles with that script, why don't you try the GEGL native function available?

_________________
"Where am I ?"


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 1:21 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
Goran, if it works so far ... you're almost there.
Your gimp is missing a plug-in: blur-gauss.exe which was still present in GIMP 2.8 but isn't anymore in the new GIMP. Thus the error message.
Now, where to get it from...? I'm on linux, so mine wouldn't help and my old windows install-files are 32 bit ... which is probably not useful either.
Maybe someone else can help?

Another possiblity would be a portable version of GIMP 2.8 .
Anyhow ... once you've got that plug-in put it in our personal GIMP plug-in folder. Restart GIMP.
Should work then.

And if it' still out of range ... I'll try to help you fix it, too.

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 1:43 pm  (#12) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
I think it is the radius parameter for plug-in-gauss-irr about line 149

In Gimp 2.8 radius of gaussian blur (in pixels) > 0.0
In Gimp 2.10 in pixels 0 <= radius <= 500

With larger images and softness values theRadius - line 50 - is greater than 500 and you get that error message.


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Tue Nov 20, 2018 2:41 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Following rich's comment, you may try the filter using a small value for parameter "softness".
Tell us if in that case you can run the filter up to the end.

Well, assumed it was the problem, I added a check in the filter not to have a value greater than 500 for the blur.
Try this version now.
Attachment:
vignette_0(1).scm [4.44 KiB]
Downloaded 111 times

_________________
"Where am I ?"


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Wed Nov 21, 2018 1:37 am  (#14) 
Offline
GimpChat Member

Joined: May 17, 2012
Posts: 78
Hello again,
First someone asked why I not used the GEGL vignette, but I can not there myself define the path where the vignette shall be. So this is the reason.
Then "nelo" told me that the plugin "blur-gauss.exe" was missing and before I installed the 2.10.8 I saved all my old plugin and scripts in a library, so I had all the old 2.8.22 files. So I copied this file to the plugin folder and NOW it works!!!!!
If there is someone who need the old plugins from the 2.8.22 I still have them.

Thanks and hugs for all for your help. See you in the future .....
Goran


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Wed Nov 21, 2018 1:42 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Did you try my last version (I see "not downloaded")?

_________________
"Where am I ?"


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Wed Nov 21, 2018 1:47 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Also, tried GEGL Vignette with a selection: it works fine IMO.
Attachment:
GEGL-vignette.jpg
GEGL-vignette.jpg [ 186.56 KiB | Viewed 2882 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Wed Nov 21, 2018 2:14 am  (#17) 
Offline
GimpChat Member

Joined: May 17, 2012
Posts: 78
Yes Dinasset your file is also working!
Thanks


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Wed Nov 21, 2018 2:01 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1442
Location: Finland
I have 2 different vignette scripts, than the one you posted and they work in 2.10.
Both were originally for 2.8, I fixed some parameters and translated few words of Japanese to English on the second script.
First is vignette.scm by Flame2057. The second is vignetting.scm by Tamagoro. The effect is much stronger.
Attached if you want to try them. Menu entry is "Effects".


Attachments:
vignetting.scm [3.27 KiB]
Downloaded 109 times
vignette.scm [2.89 KiB]
Downloaded 107 times
Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Thu Nov 22, 2018 1:49 am  (#19) 
Offline
GimpChat Member

Joined: May 17, 2012
Posts: 78
Thanks Nidhogg for the scripts. Only one small question about the name of the scripts which is the same as my old vignette.scm.
I guess I must change the names of these new scripts to vignette1 and vignette2 so it not will overwrite my old script.
Please tell me
Goran


Top
 Post subject: Re: Script Vignette not working in 2.10.8
PostPosted: Thu Nov 22, 2018 4:10 am  (#20) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
You should not need to rename anything if the original is as you posted, vignette_0(1).scm

That is the one that requires a selection and registers in Filters -> Light and Shadow.

The other two vignette.scm and vignetting.scm register in a new menu 'Effects'

Image

Renaming a file does not alter where to find it in the Gimp menu system.

Edit: A quick test and it looks like the vignette.scm has the same issue as vignette_0(1).scm For larger images, it calls plug-in-gauss with a now invalid (> 500) radius.

e.g. Procedure 'plug-in-gauss' has been called with value '894.472362' for argument

Not a 100% test but vignetting.scm works with that 'larger' image and gives a result.


Last edited by rich2005 on Thu Nov 22, 2018 5:50 am, edited 1 time in total.

Top
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group