我是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)
答案 0 :(得分:0)
所有的Gimp API都记录在Gimp本身中。转到Filters>Script-fu>Console...
,然后按Browse...
按钮。这将打开一个对话框,该对话框在左侧列出所有功能,并在右侧提供所选功能的说明。
使用顶部的搜索栏将API列表限制为潜在的候选项(blur
或gauss
)
点击[Apply]
,将所选函数的原型复制到控制台窗口。
两个警告: