来自gimp的错误消息-pdb.file_png_save2(...) (错误的参数类型)-参数似乎遵循文档,但仍然给出错误...
在一个插件/脚本模块中,我试图保存一个.png文件。我在用 pdb.file_png_save2(),因为我需要保留透明度。我无处可去。以下是来自python-fu控制台的信息。
>>> img=gimp.image_list()[0]
>>> lyr=img.layers[0]
>>> pdb.file_png_save2(img,lyr,"/tmp/untitled14.png","untitled14.png",False,9,"",True)
Traceback (most recent call last):
File "<input>",line 1,in <module>
TypeError: wrong parameter type
只是为了验证对象是否有效--->
>>> img
<gimp.Image 'I230112341bgsl.jpg'>
>>> lyr
<gimp.Layer 'Background'>
>>>
因此,哪个参数是错误的类型。如果是这样,哪里有任何真实的文档(即,不是来自pdb浏览器的“说明”,因为显然不够)