<?xml version="1.0"?>
<page id="Gimp.Image.set_color_profile_from_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>bool</api:type>
      </api:returns>
      <api:name>gimp_image_set_color_profile_from_file</api:name>
      <api:arg>
        <api:type>Gimp.Image</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gio.File</api:type>
        <api:name>file</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Image.set_color_profile_from_file</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Image, Gio.File)
@returns(bool)
def set_color_profile_from_file(self, file):
    # Python wrapper for gimp_image_set_color_profile_from_file()
  </code></synopsis>
  <p>Sets the image's color profile from an ICC file</p>  <p>This procedure sets the image's color profile from a file containing
an ICC profile, or unsets it if NULL is passed as 'file'. This
procedure does no color conversion. However, it will change the
pixel format of all layers to contain the babl space matching the
profile. You must call this procedure before adding layers to the
image.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>self</code></title>
  <p>The image.</p>
</item>
<item>
<title><code>file</code></title>
  <p>The file containing the new color profile.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
