Gimp.RunSaveFunc
function onRunSaveFunc(procedure: Gimp.Procedure, run_mode: Gimp.RunMode, image: Gimp.Image, drawables: Array(Gimp.Drawable), file: Gio.File, metadata: Gimp.Metadata, config: Gimp.ProcedureConfig): Gimp.ValueArray {
}
The save function is run during the lifetime of the GIMP session, each time a plug-in save procedure is called.
If a MimeType was passed in Gimp.SaveProcedure.new, then metadata will be non-null and can be tweaked by the run() function if needed. Otherwise you can let it as-is and it will be stored back into the exported file according to rules on metadata export shared across formats.
Since 3.0
- procedure
the Gimp.Procedure that runs.
- run_mode
the Gimp.RunMode.
- image
the image to save.
- drawables
the drawables to save.
- file
the Gio.File to save to.
- metadata
metadata object prepared for the mimetype passed in Gimp.FileProcedure.prototype.set_mime_types if export_metadata argument was set in Gimp.SaveProcedure.new.
- config
the procedure's remaining arguments.
- Returns
the procedure's return values.