【发布时间】:2018-10-30 15:08:50
【问题描述】:
我是 GIMP 和脚本的新手。我想知道如何使用脚本对图层应用高斯模糊。我找不到任何简单的例子来描述我的要求。我正在使用 GIMP 版本 2.10.4。请让我知道如何为图层应用高斯模糊。谢谢。
(let* (
(newimage (car (gimp-image-new 192 192 0)))
(newlayer (car (gimp-file-load-layer 0 newimage "D:\\t.png")))
(clayer (car (gimp-layer-copy newlayer 1)))
)
(gimp-image-add-layer newimage newlayer 0)
(gimp-image-select-color newimage CHANNEL-OP-REPLACE newlayer '(0 0 0))
(gimp-context-set-foreground '(9 77.9 95.3))
(gimp-edit-fill newlayer FOREGROUND-FILL)
(gimp-image-add-layer newimage clayer 0)
(gimp-image-select-color newimage CHANNEL-OP-REPLACE clayer '(0 0 0))
(gimp-context-set-foreground '(255 255 255))
(gimp-edit-fill clayer FOREGROUND-FILL)
///
here I want to apply Gaussian blur. I couldn't find the script command for it.
//////
(gimp-selection-none newimage)
(gimp-display-new newimage)
【问题讨论】:
-
可能是题外话,因为有更好的 Stack Exchange 站点可以解决这个问题,但您至少需要展示您尝试过的内容。 如果 script-fu 编码是主题,那么请展示您的研究(“gimp script gaussian blur”会产生大量信息,包括教程)和您的代码,并告诉我们哪些不适合您。
-
我已经搜索过,但找不到任何插件或脚本示例
-
SO 是关于询问编码问题,但您的问题似乎是“告诉我如何编写脚本脚本”,这不是主题。要么展示你尝试过的东西,同时解释什么不起作用,或者退后一步,访问一些教程,以了解你想要解决的问题。
-
我已附上我的脚本代码
-
您是否在寻找
plug-in-gauss-rle,如oldhome.schmorp.de/marc/pdb/plug_in_gauss_rle.html 或者twentymegahertz.wordpress.com/2017/01/10/… 等等。