<?xml version="1.0"?>
<page id="Gimp.Image.get_file"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Image" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gio.File</api:type>
      </api:returns>
      <api:name>gimp_image_get_file</api:name>
    </api:function>
  </info>
  <title>Gimp.Image.prototype.get_file</title>
  <synopsis><code mime="text/x-gjs">
function get_file(): <link href="../Gio-2.0/Gio.File.html">Gio.File</link> {
    // Gjs wrapper for gimp_image_get_file()
}
  </code></synopsis>
  <p>Returns the file for the specified image.</p>  <p>This procedure returns the file associated with the specified image.
The image has a file only if it was loaded or imported from a file
or has since been saved or exported. Otherwise, this function
returns <code>null</code>. See also gimp-image-get-imported-file to get the
current file if it was imported from a non-GIMP file format and not
yet saved, or gimp-image-get-exported-file if the image has been
exported to a non-GIMP file format.</p>
  <p>Since 2.8</p>
<terms>
<item>
<title><code>Returns</code></title>
  <p>The file.</p>
</item>
</terms>

</page>
