I feel as if this is important enough to warrant a topic on its own. I cannot fix this for the life of me: I’m trying to make my Neon filter work with the alpha channel but it keep spitting errors of the following sort at me. When I shove this in the local custom command filter:
Even if I empty the command so that it’s just GUI variables doing nothing, it persists. When I scrub all of the GUI variables, it suddenly works. I don’t know why it’s messing up so badly.
I wanted to do without the preview command. Even if I add in the preview command or get rid of the parantheses it doesn’t work, giving me the same error.
If you really don’t want a preview, then use special command name _none_ for the preview command. About the error: maybe try running the equivalent command from a shell, it’s more easy to debug a filter as you get more detailed logs.
I wanted a preview but I didn’t want it to go through a special preview command like all the other GUI filters.
Now I’ve tested it with the shell (v2.3.4 but here it should do the same job) and it’s even less clear as to what’s going on. On some images the gradient norm stuff doesn’t work in the shell whereas it does in GIMP with the plugin.
Edit: I might have gotten somewhere by using fx_gradient_norm instead of gradient_norm. I don’t know yet.
Right, the code works but it looks absolutely terrible. Compared is the original Neon with the newer alpha-compatible Neon:
The second one looks nowhere near as striking and has all manner of artefacts such as sharp changes in colour which aren’t obscured by the highlights like in the first one. I’ve burned myself out over several hours trying to make something that works. I gave up before starting with the boost glow. If anyone can salvage anything out of this, here’s the code.
Do you have a working script to compare against? I had difficulty making it correct (some problem with invert_rgb - is that a command? I replaced with negate to get it to do something).
1.gradient_norm does not take in any parameters. It is fx_gradient_norm that you want. 2. I would place displays and prints to step through the filter to see where things go wrong.
I’ve been running the command while showing the end outputs at every stage, that’s worked for me. For now I’ve given up with the command as although my initial problem is fixed, it looks terrible for what it’s meant to be.
Just a hunch here, but I think it could be something to do with either cut or normalize (two commands for restricting value range). Maybe try using cut to limit it…