# Gimp.Image.prototype.set_file

    function set_file(file: Gio.File): Boolean {
        // Gjs wrapper for gimp_image_set_file()
    }

Sets the specified XCF image's file.

This procedure sets the specified image's file. This is to set the XCF file associated with your image. In particular, do not use this function to set the imported file in file import plug-ins. This is done by the core process.

file

  The new image file.

Returns

  TRUE on success.