<?xml version="1.0"?>
<page id="Gimp.Image.get_thumbnail_data"
      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>[guint8]</api:type>
      </api:returns>
      <api:name>gimp_image_get_thumbnail_data</api:name>
      <api:arg>
        <api:type>Gimp.Image</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>width</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>height</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>bpp</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Image.get_thumbnail_data</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Image, int, int, int)
@returns([guint8])
def get_thumbnail_data(self, width, height, bpp):
    # Python wrapper for gimp_image_get_thumbnail_data()
  </code></synopsis>
  <p>Get a thumbnail of an image.</p>  <p>This function gets data from which a thumbnail of an image preview
can be created. Maximum x or y dimension is 1024 pixels. The pixels
are returned in RGB[A] or GRAY[A] format. The bpp return value
gives the number of bytes per pixel in the image.</p>

<terms>
<item>
<title><code>self</code></title>
  <p>The image.</p>
</item>
<item>
<title><code>width</code></title>
  <p>The requested thumbnail width.</p>
</item>
<item>
<title><code>height</code></title>
  <p>The requested thumbnail height.</p>
</item>
<item>
<title><code>bpp</code></title>
  <p>The previews bpp.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
