# Gimp.file_save

    function file_save(run_mode: Gimp.RunMode, image: Gimp.Image, drawables: Array(Gimp.Item), file: Gio.File): Boolean {
        // Gjs wrapper for gimp_file_save()
    }

Saves a file by extension.

This procedure invokes the correct file save handler according to the file's extension and/or prefix.

run_mode

  The run mode.

image

  Input image.

drawables

  Drawables to save.

file

  The file to save the image in.

Returns

  TRUE on success.