Gimp.file_save
Description: Reference for Gimp.file_save

### Function

# Gimpfile_save

#### Declaration [src]

    gboolean
    gimp_file_save (
      GimpRunMode run_mode,
      GimpImage* image,
      GFile* file,
      GimpExportOptions* options
    )

#### Description [src]

Saves a file by extension.

This procedure invokes the correct file save handler according to the file’s extension and/or prefix. The `options` argument is currently unused and should be set to `NULL` right now.

#### Parameters

`run_mode`

  Type: `GimpRunMode`

  The run mode.

`image`

  Type: `GimpImage`

  Input image.

  The data is owned by the caller of the function.

`file`

  Type: `GFile`

  The file to save the image in.

  The data is owned by the caller of the function.

`options`

  Type: `GimpExportOptions`

  Export option settings.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `gboolean`

TRUE on success.