问题几乎在标题中。源代码我有这么远:
from gimpfu import *
def add_stuff(watermark, opacity, footer, file_out):
pass
register(
'add-stuff',
N_('Adds stuff'),
'Adds watermark and Footer',
'Malte Fischer',
'AM-Solutions',
'2019',
_('Add Stuff'),
'*',
[
(PF_STRING,"watermark","Watermark","Path of the watermark image"),
(PF_INT,"opacity","Opacity","Opacity of the Watermark"),
(PF_STRING,"footer","Footer","Path of the footer image"),
(PF_STRING,"file_out","Output","Output path and name of the image")
],
[],
add_stuff,
menu = "<Image>/Filters/")
main()
保存在 {gimp 安装}/lib/gimp/2.0/plug-ins/add-stuff/add-stuff.py
先感谢您