It is currently Fri Aug 28, 2026 12:16 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 8:09 pm  (#1) 
Offline
New Member

Joined: Apr 16, 2019
Posts: 4
Hi,

I have a tower and a laptop. Both on Win10, Gimp 2.10.10, and with a Frequency separation script (SS-Split-Components_v1-0.scm)
On the laptop the script stops at the gaussian blur to let me choose the correct blur, but on the tower the script don't stop.
Do someboby know why it stops on a computer but continues on the other one ?
I'm searching for a while but I don't find what's the difference between computers.
Did I change A parameter and forgot it (I don'ts see wich one), or is it something else ?

Thanks in advance


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: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 8:43 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14177
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Jean-Marc68 wrote:
Hi,

I have a tower and a laptop. Both on Win10, Gimp 2.10.10, and with a Frequency separation script (SS-Split-Components_v1-0.scm)
On the laptop the script stops at the gaussian blur to let me choose the correct blur, but on the tower the script don't stop.
Do someboby know why it stops on a computer but continues on the other one ?
I'm searching for a while but I don't find what's the difference between computers.
Did I change A parameter and forgot it (I don'ts see wich one), or is it something else ?

Thanks in advance

It might be,
a difference in the GIMP User Profiles,
of each computer,
that's causing the issue.

You could try creating a new GIMP User Profile.
On the computer that's having issues with the script.
Then place the script in question,
into the new script folder,
within the new profile.
Then open GIMP and try the script,
to see if it completes.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 9:01 pm  (#3) 
Offline
New Member

Joined: Apr 16, 2019
Posts: 4
Thanks for rapid answer.

I Installed Gimp on the laptop this afternoon. It's then a brand new user profile.
Il renamed the existing user profil on the tower. Gimp created then a brand new one.
But it still the same problem.

Do you have something else to try ?

Thanks.


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 9:08 pm  (#4) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14177
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Jean-Marc68 wrote:
Thanks for rapid answer.

I Installed Gimp on the laptop this afternoon. It's then a brand new user profile.
Il renamed the existing user profil on the tower. Gimp created then a brand new one.
But it still the same problem.

Do you have something else to try ?

Thanks.

That's odd behavior.
It might be something within some kind of security software,
which could be stopping it's completion.
Are you running security software?
If so, shut it down and then try running the script.

I'm also wondering where the script came from?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 9:17 pm  (#5) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14177
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
There has been some reports of odd behavior with scripts in GIMP 2.10.
I'm wondering if this is the script you're using.

Attachment:
SS-Split-Components_v1-0.scm [7.09 KiB]
Downloaded 152 times

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 9:31 pm  (#6) 
Offline
New Member

Joined: Apr 16, 2019
Posts: 4
I don't use specific security software. Both are running with the one integrated in Win10.
Actually it's the plugin you mention on the previous anwer I use. I runs at the end on both computer, but it not stops on the tower.

The pugin contents
; in interactive mode, the script will wait for the user to adjust the blur radius to suit.
; a reasonable radius to start with is about image-width/160
(plug-in-gauss-iir2 RUN-INTERACTIVE img ss-layer-lowpass blur-radius blur-radius)


Is it possible that gimp on tower is not in interactive mode ? If yes, hot to turn it on ?

Thanks


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 9:35 pm  (#7) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14177
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Jean-Marc68 wrote:
I don't use specific security software. Both are running with the one integrated in Win10.
Actually it's the plugin you mention on the previous anwer I use. I runs at the end on both computer, but it not stops on the tower.

The pugin contents
; in interactive mode, the script will wait for the user to adjust the blur radius to suit.
; a reasonable radius to start with is about image-width/160
(plug-in-gauss-iir2 RUN-INTERACTIVE img ss-layer-lowpass blur-radius blur-radius)


Is it possible that gimp on tower is not in interactive mode ? If yes, hot to turn it on ?

Thanks

I'm not aware of an "interaction mode",
that your computer needs to be in,
to use a script or a plug-in.

Is this a script or a plug-in?
Can you post it?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 9:58 pm  (#8) 
Offline
New Member

Joined: Apr 16, 2019
Posts: 4
It's a script.
The one you mentioned and contains :
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 3 of the License, or
; (at your option) any later version.

; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.


; There are several ways an image can be separated into different components so that selective
; alterations can be done to improve sharpening, eliminate blemishes, clean up scratches, etc.

; Frequency separation is where a low-pass and a high-pass filter is applied to the image
; The frequency-separated image is useful for portrait photography

; Color/Luminance separation leaves the colors of the image on one layer with a 'flat' value
; and the other layer carries luminance values with 'flat' grayscale information
; This is useful for landscape photography.

(define (script-fu-frequency-separation img layer)


; sequence of operation
; create a new-from-visible layer called "temporary" and drop it into a new layer group.
; Copy the new layer from visible, call it 'low pass', blur it by a reasonable amount,
; and set the mode to 'Grain Extract'. The two layers will interact to produce a (mostly) greyscale
; image with all the edges visible.
; Create another layer-from-visible and call it 'high pass'. set the mode to 'grain merge'
; Set the mode for layer 'low pass' back to normal and delete 'temporary'.
   
      (gimp-image-undo-group-start img)   ; Always good practice to undo all the steps of a script at once
      
      (let* (
         (ss-layer-group (car (gimp-layer-group-new img)))
         (ss-layer-temp (car (gimp-layer-new-from-visible img img "Temporary")))
         (ss-layer-lowpass (car (gimp-layer-new-from-visible img img "Low Pass")))
         (ss-layer-highpass 0) ; created later...
         (blur-radius (/ (car (gimp-image-width img)) 160))
         )

         (gimp-item-set-name ss-layer-group "Frequency Separation")
         (gimp-image-insert-layer img ss-layer-group 0 -1)         
         (gimp-image-insert-layer img ss-layer-temp ss-layer-group -1)            
         (gimp-image-insert-layer img ss-layer-lowpass ss-layer-group -1)   
         (gimp-layer-set-mode ss-layer-lowpass GRAIN-EXTRACT-MODE)
         ; in interactive mode, the script will wait for the user to adjust the blur radius to suit.
         ; a reasonable radius to start with is about image-width/160
         (plug-in-gauss-iir2 RUN-INTERACTIVE img ss-layer-lowpass blur-radius blur-radius)  ;{ RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }
         (set! ss-layer-highpass (car (gimp-layer-new-from-visible img img "High Pass")))
         (gimp-image-insert-layer img ss-layer-highpass ss-layer-group -1)   
         (gimp-layer-set-mode ss-layer-highpass GRAIN-MERGE-MODE)
         (gimp-layer-set-mode ss-layer-lowpass NORMAL-MODE)
         
         (gimp-image-remove-layer img ss-layer-temp)      
         (gimp-image-set-active-layer img ss-layer-group)

         (gimp-displays-flush)
         (gimp-image-undo-group-end img)       

   )
)




(define (script-fu-col-lum-separation img layer)


; sequence of operation
; create a new-from-visible layer called "temporary" and drop it into a new layer group.
; Copy the new layer from visible, call it 'luminosity', desaturate with luminosity,
; and set the mode to 'Grain Extract'. The two layers will interact to produce a ghostly image
; that carries the colour information from the image.
; Create another layer-from-visible and call it 'color'. set the mode to 'grain merge'
; Set the mode for layer 'luminosity' back to normal and delete 'temporary'.
   
      (gimp-image-undo-group-start img)   ; Always good practice to undo all the steps of a script at once
   
      (let* (
         (ss-layer-group (car (gimp-layer-group-new img)))
         (ss-layer-temp (car (gimp-layer-new-from-visible img img "Temporary")))
         (ss-layer-luminosity (car (gimp-layer-new-from-visible img img "Luminosity")))
         (ss-layer-color 0) ; created later...
         )

         (gimp-item-set-name ss-layer-group "Col/Lum Separation")
         (gimp-image-insert-layer img ss-layer-group 0 -1)         
         (gimp-image-insert-layer img ss-layer-temp ss-layer-group -1)            
         (gimp-image-insert-layer img ss-layer-luminosity ss-layer-group -1)   
         (gimp-layer-set-mode ss-layer-luminosity GRAIN-EXTRACT-MODE)
         (gimp-desaturate-full ss-layer-luminosity DESATURATE-LUMINOSITY) ; { DESATURATE-LIGHTNESS (0), DESATURATE-LUMINOSITY (1), DESATURATE-AVERAGE (2) }
         (set! ss-layer-color (car (gimp-layer-new-from-visible img img "Color")))
         (gimp-image-insert-layer img ss-layer-color ss-layer-group -1)   
         (gimp-layer-set-mode ss-layer-color GRAIN-MERGE-MODE)
         (gimp-layer-set-mode ss-layer-luminosity NORMAL-MODE)
         
         (gimp-image-remove-layer img ss-layer-temp)      
         (gimp-image-set-active-layer img ss-layer-group)

         (gimp-displays-flush)
         (gimp-image-undo-group-end img)

   )
)

;==========================================

; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 3 of the License, or
; (at your option) any later version.

; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.



(script-fu-register
         "script-fu-frequency-separation"
         "<Image>/Filters/Generic/Split/Frequency Separation"
         "Splits the visible image into a high-frequency and a low-frequency layer, and leaves them in a new layer group. The script will ask for your opinion about a gaussian blur. The preset value is usually close to optimal."
         
         "Copyright Mike Ochtman"
         "Ver 1.0 Aug 2012"
         "*" ; image type "", "*", "RGB"...
         SF-IMAGE "Image" 0
         SF-DRAWABLE "Layer" 0
)

(script-fu-register
         "script-fu-col-lum-separation"
         "<Image>/Filters/Generic/Split/Color and Luminosity Separation"
         "Splits the visible image into a luminosity and color layer, and leave them in a new layer group."
         
         "Copyright Mike Ochtman"
         "Ver 1.0 Aug 2012"
         "*" ; image type "", "*", "RGB"...
         SF-IMAGE "Image" 0
         SF-DRAWABLE "Layer" 0
)
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 3 of the License, or
; (at your option) any later version.

; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;


As I understand from line "(plug-in-gauss-iir2 RUN-INTERACTIVE img ss-layer-lowpass blur-radius blur-radius)", bur is supposed to run interactively. It runs, but not interactively. I don't understand why, and then how to fix it.


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 10:15 pm  (#9) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14177
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Jean-Marc68 wrote:
As I understand from line "(plug-in-gauss-iir2 RUN-INTERACTIVE img ss-layer-lowpass blur-radius blur-radius)", bur is supposed to run interactively. It runs, but not interactively. I don't understand why, and then how to fix it.

Thanks for posting the code.
It's the same script by Mike Ochtman that is being referred.
You're correct about the blur being called for interactively.

I'm sorry,
don't know why this is happening.
Perhaps one of the scripter/coders,
will view this thread and help out.
For now, I'm out of ideas,
as to a fix.

You can also ask your question @,
gimplearn
or even
gimp-forum

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 10:38 pm  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4528
Location: Canada
From my experience, I was never able to get RUN-INTERACTIVE to work or came across any script that allows this.
always used RUN-NONINTERACTIVE
If you want users to be able to change parameters then it has to be changed/selected when the script starts... I have never seen any scripts or plug-in that runs and then stops and lets user change INTERACTIVELY halfway through.

_________________
TinT


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Tue Apr 16, 2019 11:15 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
The script needs to be installed Gaussian Blur (in 2.10 replaced by Gegl).

1.Check the entry on the menu on both computers:
Filters/Blur/Gaussian Blur...

2.Make a file search
gimp_dir}\plug-ins\blur-gauss.exe

If my assumptions are correct on one computer, this file is missing (and on the other one it installed as a copy from the older version of Gimp).

ps. Recently Rich2005 wrote about it but I forgot what thread and forum :hehe

_________________
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Wed Apr 17, 2019 5:55 am  (#12) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16168
trandoductin wrote:
From my experience, I was never able to get RUN-INTERACTIVE to work or came across any script that allows this.
always used RUN-NONINTERACTIVE
If you want users to be able to change parameters then it has to be changed/selected when the script starts... I have never seen any scripts or plug-in that runs and then stops and lets user change INTERACTIVELY halfway through.


Actually my "Chiseled Steel Text" filter opens shadow effects interactively.

To the original poster:
You may want to try and change the "RUN-INTERACTIVE" to a 0 and see if that works.

_________________
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Wed Apr 17, 2019 8:04 am  (#13) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4528
Location: Canada
Well that's something I didn't know scheme can do.
Since in python, you don't even have the option to pass that RUN-MODE parameter.

_________________
TinT


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Wed Apr 17, 2019 8:37 am  (#14) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
trandoductin wrote:
Well that's something I didn't know scheme can do.
Since in python, you don't even have the option to pass that RUN-MODE parameter.


It's there but as a named parameter(*), no need to encumber the positional parameters(**) with a parameter you seldom use(***).

(*) Something like "foobar(image, layer, run_mode=RUN_INTERACTIVE)" (possibilities are: 'RUN_INTERACTIVE', 'RUN_NONINTERACTIVE', 'RUN_WITH_LAST_VALS')
(**) All glory to Python designers
(***) Using it in IMHO a capital sin anyway

_________________
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Wed Apr 17, 2019 10:15 am  (#15) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
On windows start Gimp from the command line, start your plugin and exit. Examine the error .txt file.

So use cmd, go to the root, path should point to the Gimp bin then type at the prompt: "gimp-2.10 > error.txt 2>&1" without quotes of course. All the output of Gimp will be written in error.txt (here in the root path).

After exit look at the error file and read carefully its contents. If you do that for both computers I hope you will find your solution.

I have done this many times when I was busy with developing Indexprint and every time it was helpful.

For Linux is it easier. Start Gimp from terminal, start your plugin and observe the output in terminal screen.

_________________
Happy Gimping !!


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Thu Apr 18, 2019 10:00 am  (#16) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4528
Location: Canada
ofnuts wrote:
It's there but as a named parameter(*), no need to encumber the positional parameters(**) with a parameter you seldom use(***).

(*) Something like "foobar(image, layer, run_mode=RUN_INTERACTIVE)" (possibilities are: 'RUN_INTERACTIVE', 'RUN_NONINTERACTIVE', 'RUN_WITH_LAST_VALS')
(**) All glory to Python designers
(***) Using it in IMHO a capital sin anyway


Just tried it it lets me run the code when I tried using named parameter but no interactive window popped up...ah well I have lived without it so it's not a big deal.

_________________
TinT


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Thu Apr 18, 2019 10:27 am  (#17) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2613
Rod wrote:
trandoductin wrote:
From my experience, I was never able to get RUN-
To the original poster:
You may want to try and change the "RUN-INTERACTIVE" to a 0 and see if that works.


How did this stray so far from the original post? MareroQ gave the solution, use the old blur-gauss plugin from a Gimp 2.8 installation.

Image

Image

However, always a however,
The most useful option, frequency separation is already in Gimp 2.10 as Filters -> Enhance -> High Pass

The other is a bit strange, theory is that applying an unsharp mask without luminosity is best. Not too sure about that. Can be done manually by messing around with Colors -> Components -> Decompose (LCH)


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Thu Apr 18, 2019 12:01 pm  (#18) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
trandoductin wrote:
ofnuts wrote:
It's there but as a named parameter(*), no need to encumber the positional parameters(**) with a parameter you seldom use(***).

(*) Something like "foobar(image, layer, run_mode=RUN_INTERACTIVE)" (possibilities are: 'RUN_INTERACTIVE', 'RUN_NONINTERACTIVE', 'RUN_WITH_LAST_VALS')
(**) All glory to Python designers
(***) Using it in IMHO a capital sin anyway


Just tried it it lets me run the code when I tried using named parameter but no interactive window popped up...ah well I have lived without it so it's not a big deal.


I tried it and it worked for me:

Image

_________________
Image


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Thu Apr 18, 2019 6:24 pm  (#19) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4528
Location: Canada
That one worked for me too.
The one that didn't work for me was.
pdb.plug_in_gauss_iir2(gimp.image_list()[0],gimp.image_list()[0].layers[0],200,200,run_mode=RUN_INTERACTIVE)
maybe pdb.plug_in_gauss_iir2 doesn't have a dialog.

_________________
TinT


Top
 Post subject: Re: Plugin stop on a computer but not on the other
PostPosted: Thu Apr 18, 2019 11:27 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
@Jean-Marc68.
Are you too busy to give feedback?

@Ofnuts.
There is no forgiveness for sins? [(***) Using it in IMHO a capital sin anyway ]
I used in one plugin (one with frames in stride - or something like that) 17 times.
And I think that in the case of visualization it is a very good solution.

@Trandoductin.
I am convinced that you tried this code in Gimp 2.10 without considering the installation of the plugin replaced by GEGL.
Although, from my little experience, I know about some limitations in an interactive call:
- you can not call another skript-fu from the skript-fu (this is understandable because only one can act actively),
- python plugin can not call another Python plugin (and I do not understand it),
- not all plugins (although PDB says something else), especially those "unofficial" older and replaced by GEGL (only some procedures have been left).
I think that in your forum you should consider adding all "missing" files (they are in 2.8 but not in 2.10) to download (in versions 32 and 64 bit) - although there are a lot of them
(but then the user does not have to install "all" Gimp 2.8 for the need of having, for example, one file).

@Rich2005.
Thank you for a broader explanation of the problem.
As for the content of the statement - the lack of deeper control (probably unimaginable on GimpForu.Net) but also for it - I like GimpChat.

Happy Easter for all of the members in Gimp Chat, Gimp-Forum.net and Gimp Learn.

_________________
Image


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

All times are UTC - 5 hours [ DST ]


cron

* Login  



Powered by phpBB3 © phpBB Group