How do I save (export) all layers with gimp's script fu?

前端 未结 3 1239
旧时难觅i
旧时难觅i 2021-02-07 21:11

With gimp fu, I can save the content of one layer (at least, that is how I interprete the definition of gimp_file_save because it takes the parameter

3条回答
  •  猫巷女王i
    2021-02-07 21:41

    I have found out that if you pass None as the drawable argument to gimp_xcf_save(), GIMP (at least version 2.8) will save all layers of the image to the XCF file:

    pdb.gimp_xcf_save(0, image, None, 'file.xcf', 'file.xcf')

提交回复
热议问题