# Gimp.ExportProcedure.prototype.set_capabilities

    function set_capabilities(capabilities: Gimp.ExportCapabilities, get_capabilities_func: Gimp.ExportGetCapabilitiesFunc): void {
        // Gjs wrapper for gimp_export_procedure_set_capabilities()
    }

Sets default Gimp.ExportCapabilities for image export.

capabilities and get_capabilities_func are overlapping arguments. Either set capabilities if your format capabilities are stable or get_capabilities_func if they depend on other options. If get_capabilities_func is set, capabilities must be 0.

If set, get_capabilities_func will be called every time an argument in the [class@Gimp.ProcedureConfig] is edited and it will be used to edit the export capabilities dynamically.

Since 3.0

capabilities

  a Gimp.ExportCapabilities bitfield.

get_capabilities_func

  callback function to update export options