<?xml version="1.0"?>
<page id="Gimp.file_load"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gimp.Image</api:type>
      </api:returns>
      <api:name>gimp_file_load</api:name>
      <api:arg>
        <api:type>Gimp.RunMode</api:type>
        <api:name>run_mode</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gio.File</api:type>
        <api:name>file</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.file_load</title>
  <synopsis><code mime="text/x-gjs">
function file_load(run_mode: <link xref="Gimp.RunMode">Gimp.RunMode</link>, file: <link href="../Gio-2.0/Gio.File.html">Gio.File</link>): <link xref="Gimp.Image">Gimp.Image</link> {
    // Gjs wrapper for gimp_file_load()
}
  </code></synopsis>
  <p>Loads an image file by invoking the right load handler.</p>  <p>This procedure invokes the correct file load handler using magic if
possible, and falling back on the file's extension and/or prefix if
not.</p>

<terms>
<item>
<title><code>run_mode</code></title>
  <p>The run mode.</p>
</item>
<item>
<title><code>file</code></title>
  <p>The file to load.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>The output image.</p>
</item>
</terms>

</page>
