<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>PIL Package (autodoc of remaining modules) — Pillow v2.6.2 (PIL fork)</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: './', VERSION: '2.6.2', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="author" title="About these documents" href="about.html" /> <link rel="top" title="Pillow v2.6.2 (PIL fork)" href="index.html" /> <link rel="up" title="Reference" href="reference/index.html" /> <link rel="next" title="Appendices" href="handbook/appendices.html" /> <link rel="prev" title="PSDraw Module" href="reference/PSDraw.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="handbook/appendices.html" title="Appendices" accesskey="N">next</a> |</li> <li class="right" > <a href="reference/PSDraw.html" title="PSDraw Module" accesskey="P">previous</a> |</li> <li><a href="index.html">Home</a> »</li> <li><a href="reference/index.html" accesskey="U">Reference</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="pil-package-autodoc-of-remaining-modules"> <h1>PIL Package (autodoc of remaining modules)<a class="headerlink" href="#pil-package-autodoc-of-remaining-modules" title="Permalink to this headline">¶</a></h1> <p>Reference for modules whose documentation has not yet been ported or written can be found here.</p> <div class="section" id="bdffontfile-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">BdfFontFile</span></tt> Module<a class="headerlink" href="#bdffontfile-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.ContainerIO"> <span id="containerio-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ContainerIO</span></tt> Module<a class="headerlink" href="#module-PIL.ContainerIO" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.ContainerIO.ContainerIO"> <em class="property">class </em><tt class="descclassname">PIL.ContainerIO.</tt><tt class="descname">ContainerIO</tt><big>(</big><em>file</em>, <em>offset</em>, <em>length</em><big>)</big><a class="reference internal" href="_modules/PIL/ContainerIO.html#ContainerIO"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ContainerIO.ContainerIO" title="Permalink to this definition">¶</a></dt> <dd><dl class="method"> <dt id="PIL.ContainerIO.ContainerIO.isatty"> <tt class="descname">isatty</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/ContainerIO.html#ContainerIO.isatty"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ContainerIO.ContainerIO.isatty" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.ContainerIO.ContainerIO.read"> <tt class="descname">read</tt><big>(</big><em>n=0</em><big>)</big><a class="reference internal" href="_modules/PIL/ContainerIO.html#ContainerIO.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ContainerIO.ContainerIO.read" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.ContainerIO.ContainerIO.readline"> <tt class="descname">readline</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/ContainerIO.html#ContainerIO.readline"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ContainerIO.ContainerIO.readline" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.ContainerIO.ContainerIO.readlines"> <tt class="descname">readlines</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/ContainerIO.html#ContainerIO.readlines"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ContainerIO.ContainerIO.readlines" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.ContainerIO.ContainerIO.seek"> <tt class="descname">seek</tt><big>(</big><em>offset</em>, <em>mode=0</em><big>)</big><a class="reference internal" href="_modules/PIL/ContainerIO.html#ContainerIO.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ContainerIO.ContainerIO.seek" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.ContainerIO.ContainerIO.tell"> <tt class="descname">tell</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/ContainerIO.html#ContainerIO.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ContainerIO.ContainerIO.tell" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="fontfile-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">FontFile</span></tt> Module<a class="headerlink" href="#fontfile-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="gdimagefile-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">GdImageFile</span></tt> Module<a class="headerlink" href="#gdimagefile-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.GimpGradientFile"> <span id="gimpgradientfile-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">GimpGradientFile</span></tt> Module<a class="headerlink" href="#module-PIL.GimpGradientFile" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.GimpGradientFile.GimpGradientFile"> <em class="property">class </em><tt class="descclassname">PIL.GimpGradientFile.</tt><tt class="descname">GimpGradientFile</tt><big>(</big><em>fp</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#GimpGradientFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.GimpGradientFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.GimpGradientFile.GradientFile" title="PIL.GimpGradientFile.GradientFile"><tt class="xref py py-class docutils literal"><span class="pre">PIL.GimpGradientFile.GradientFile</span></tt></a></p> </dd></dl> <dl class="class"> <dt id="PIL.GimpGradientFile.GradientFile"> <em class="property">class </em><tt class="descclassname">PIL.GimpGradientFile.</tt><tt class="descname">GradientFile</tt><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#GradientFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.GradientFile" title="Permalink to this definition">¶</a></dt> <dd><dl class="method"> <dt id="PIL.GimpGradientFile.GradientFile.getpalette"> <tt class="descname">getpalette</tt><big>(</big><em>entries=256</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#GradientFile.getpalette"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.GradientFile.getpalette" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GimpGradientFile.GradientFile.gradient"> <tt class="descname">gradient</tt><em class="property"> = None</em><a class="headerlink" href="#PIL.GimpGradientFile.GradientFile.gradient" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.GimpGradientFile.curved"> <tt class="descclassname">PIL.GimpGradientFile.</tt><tt class="descname">curved</tt><big>(</big><em>middle</em>, <em>pos</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#curved"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.curved" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.GimpGradientFile.linear"> <tt class="descclassname">PIL.GimpGradientFile.</tt><tt class="descname">linear</tt><big>(</big><em>middle</em>, <em>pos</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#linear"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.linear" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.GimpGradientFile.sine"> <tt class="descclassname">PIL.GimpGradientFile.</tt><tt class="descname">sine</tt><big>(</big><em>middle</em>, <em>pos</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#sine"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.sine" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.GimpGradientFile.sphere_decreasing"> <tt class="descclassname">PIL.GimpGradientFile.</tt><tt class="descname">sphere_decreasing</tt><big>(</big><em>middle</em>, <em>pos</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#sphere_decreasing"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.sphere_decreasing" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.GimpGradientFile.sphere_increasing"> <tt class="descclassname">PIL.GimpGradientFile.</tt><tt class="descname">sphere_increasing</tt><big>(</big><em>middle</em>, <em>pos</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpGradientFile.html#sphere_increasing"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpGradientFile.sphere_increasing" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.GimpPaletteFile"> <span id="gimppalettefile-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">GimpPaletteFile</span></tt> Module<a class="headerlink" href="#module-PIL.GimpPaletteFile" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.GimpPaletteFile.GimpPaletteFile"> <em class="property">class </em><tt class="descclassname">PIL.GimpPaletteFile.</tt><tt class="descname">GimpPaletteFile</tt><big>(</big><em>fp</em><big>)</big><a class="reference internal" href="_modules/PIL/GimpPaletteFile.html#GimpPaletteFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpPaletteFile.GimpPaletteFile" title="Permalink to this definition">¶</a></dt> <dd><dl class="method"> <dt id="PIL.GimpPaletteFile.GimpPaletteFile.getpalette"> <tt class="descname">getpalette</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/GimpPaletteFile.html#GimpPaletteFile.getpalette"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GimpPaletteFile.GimpPaletteFile.getpalette" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GimpPaletteFile.GimpPaletteFile.rawmode"> <tt class="descname">rawmode</tt><em class="property"> = 'RGB'</em><a class="headerlink" href="#PIL.GimpPaletteFile.GimpPaletteFile.rawmode" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="imagedraw2-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageDraw2</span></tt> Module<a class="headerlink" href="#imagedraw2-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.ImageFileIO"> <span id="imagefileio-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageFileIO</span></tt> Module<a class="headerlink" href="#module-PIL.ImageFileIO" title="Permalink to this headline">¶</a></h2> <p>The <strong>ImageFileIO</strong> module can be used to read an image from a socket, or any other stream device.</p> <p>Deprecated. New code should use the <tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFile.Parser</span></tt> class in the <a class="reference internal" href="reference/ImageFile.html#module-PIL.ImageFile" title="PIL.ImageFile"><tt class="xref py py-mod docutils literal"><span class="pre">PIL.ImageFile</span></tt></a> module instead.</p> <div class="admonition seealso"> <p class="first admonition-title">See also</p> <p class="last">modules <tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFile.Parser</span></tt></p> </div> <dl class="class"> <dt id="PIL.ImageFileIO.ImageFileIO"> <em class="property">class </em><tt class="descclassname">PIL.ImageFileIO.</tt><tt class="descname">ImageFileIO</tt><big>(</big><em>fp</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFileIO.html#ImageFileIO"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFileIO.ImageFileIO" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">_io.BytesIO</span></tt></p> </dd></dl> </div> <div class="section" id="imageshow-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageShow</span></tt> Module<a class="headerlink" href="#imageshow-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagetransform-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageTransform</span></tt> Module<a class="headerlink" href="#imagetransform-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.JpegPresets"> <span id="jpegpresets-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">JpegPresets</span></tt> Module<a class="headerlink" href="#module-PIL.JpegPresets" title="Permalink to this headline">¶</a></h2> <p>JPEG quality settings equivalent to the Photoshop settings.</p> <p>More presets can be added to the presets dict if needed.</p> <p>Can be use when saving JPEG file.</p> <p>To apply the preset, specify:</p> <div class="highlight-python"><div class="highlight"><pre><span class="n">quality</span><span class="o">=</span><span class="s">"preset_name"</span> </pre></div> </div> <p>To apply only the quantization table:</p> <div class="highlight-python"><div class="highlight"><pre><span class="n">qtables</span><span class="o">=</span><span class="s">"preset_name"</span> </pre></div> </div> <p>To apply only the subsampling setting:</p> <div class="highlight-python"><div class="highlight"><pre><span class="n">subsampling</span><span class="o">=</span><span class="s">"preset_name"</span> </pre></div> </div> <p>Example:</p> <div class="highlight-python"><div class="highlight"><pre><span class="n">im</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="s">"image_name.jpg"</span><span class="p">,</span> <span class="n">quality</span><span class="o">=</span><span class="s">"web_high"</span><span class="p">)</span> </pre></div> </div> <div class="section" id="subsampling"> <h3>Subsampling<a class="headerlink" href="#subsampling" title="Permalink to this headline">¶</a></h3> <p>Subsampling is the practice of encoding images by implementing less resolution for chroma information than for luma information. (ref.: <a class="reference external" href="http://en.wikipedia.org/wiki/Chroma_subsampling">http://en.wikipedia.org/wiki/Chroma_subsampling</a>)</p> <p>Possible subsampling values are 0, 1 and 2 that correspond to 4:4:4, 4:2:2 and 4:1:1 (or 4:2:0?).</p> <p>You can get the subsampling of a JPEG with the <cite>JpegImagePlugin.get_subsampling(im)</cite> function.</p> </div> <div class="section" id="quantization-tables"> <h3>Quantization tables<a class="headerlink" href="#quantization-tables" title="Permalink to this headline">¶</a></h3> <p>They are values use by the DCT (Discrete cosine transform) to remove <em>unnecessary</em> information from the image (the lossy part of the compression). (ref.: <a class="reference external" href="http://en.wikipedia.org/wiki/Quantization_matrix#Quantization_matrices">http://en.wikipedia.org/wiki/Quantization_matrix#Quantization_matrices</a>, <a class="reference external" href="http://en.wikipedia.org/wiki/JPEG#Quantization">http://en.wikipedia.org/wiki/JPEG#Quantization</a>)</p> <p>You can get the quantization tables of a JPEG with:</p> <div class="highlight-python"><div class="highlight"><pre><span class="n">im</span><span class="o">.</span><span class="n">quantization</span> </pre></div> </div> <p>This will return a dict with a number of arrays. You can pass this dict directly as the qtables argument when saving a JPEG.</p> <p>The tables format between im.quantization and quantization in presets differ in 3 ways:</p> <ol class="arabic simple"> <li>The base container of the preset is a list with sublists instead of dict. dict[0] -> list[0], dict[1] -> list[1], ...</li> <li>Each table in a preset is a list instead of an array.</li> <li>The zigzag order is remove in the preset (needed by libjpeg >= 6a).</li> </ol> <p>You can convert the dict format to the preset format with the <cite>JpegImagePlugin.convert_dict_qtables(dict_qtables)</cite> function.</p> <p>Libjpeg ref.: <a class="reference external" href="http://www.jpegcameras.com/libjpeg/libjpeg-3.html">http://www.jpegcameras.com/libjpeg/libjpeg-3.html</a></p> </div> </div> <div class="section" id="module-PIL.PaletteFile"> <span id="palettefile-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">PaletteFile</span></tt> Module<a class="headerlink" href="#module-PIL.PaletteFile" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.PaletteFile.PaletteFile"> <em class="property">class </em><tt class="descclassname">PIL.PaletteFile.</tt><tt class="descname">PaletteFile</tt><big>(</big><em>fp</em><big>)</big><a class="reference internal" href="_modules/PIL/PaletteFile.html#PaletteFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PaletteFile.PaletteFile" title="Permalink to this definition">¶</a></dt> <dd><dl class="method"> <dt id="PIL.PaletteFile.PaletteFile.getpalette"> <tt class="descname">getpalette</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/PaletteFile.html#PaletteFile.getpalette"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PaletteFile.PaletteFile.getpalette" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PaletteFile.PaletteFile.rawmode"> <tt class="descname">rawmode</tt><em class="property"> = 'RGB'</em><a class="headerlink" href="#PIL.PaletteFile.PaletteFile.rawmode" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="pcffontfile-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PcfFontFile</span></tt> Module<a class="headerlink" href="#pcffontfile-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.TarIO"> <span id="tario-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">TarIO</span></tt> Module<a class="headerlink" href="#module-PIL.TarIO" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.TarIO.TarIO"> <em class="property">class </em><tt class="descclassname">PIL.TarIO.</tt><tt class="descname">TarIO</tt><big>(</big><em>tarfile</em>, <em>file</em><big>)</big><a class="reference internal" href="_modules/PIL/TarIO.html#TarIO"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TarIO.TarIO" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ContainerIO.ContainerIO" title="PIL.ContainerIO.ContainerIO"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ContainerIO.ContainerIO</span></tt></a></p> </dd></dl> </div> <div class="section" id="module-PIL.TiffTags"> <span id="tifftags-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">TiffTags</span></tt> Module<a class="headerlink" href="#module-PIL.TiffTags" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="walimagefile-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">WalImageFile</span></tt> Module<a class="headerlink" href="#walimagefile-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL._binary"> <span id="binary-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">_binary</span></tt> Module<a class="headerlink" href="#module-PIL._binary" title="Permalink to this headline">¶</a></h2> <dl class="function"> <dt id="PIL._binary.i16be"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">i16be</tt><big>(</big><em>c</em>, <em>o=0</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#i16be"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.i16be" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL._binary.i16le"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">i16le</tt><big>(</big><em>c</em>, <em>o=0</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#i16le"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.i16le" title="Permalink to this definition">¶</a></dt> <dd><p>Converts a 2-bytes (16 bits) string to an integer.</p> <p>c: string containing bytes to convert o: offset of bytes to convert in string</p> </dd></dl> <dl class="function"> <dt id="PIL._binary.i32be"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">i32be</tt><big>(</big><em>c</em>, <em>o=0</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#i32be"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.i32be" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL._binary.i32le"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">i32le</tt><big>(</big><em>c</em>, <em>o=0</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#i32le"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.i32le" title="Permalink to this definition">¶</a></dt> <dd><p>Converts a 4-bytes (32 bits) string to an integer.</p> <p>c: string containing bytes to convert o: offset of bytes to convert in string</p> </dd></dl> <dl class="function"> <dt id="PIL._binary.i8"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">i8</tt><big>(</big><em>c</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#i8"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.i8" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL._binary.o16be"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">o16be</tt><big>(</big><em>i</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#o16be"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.o16be" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL._binary.o16le"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">o16le</tt><big>(</big><em>i</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#o16le"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.o16le" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL._binary.o32be"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">o32be</tt><big>(</big><em>i</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#o32be"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.o32be" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL._binary.o32le"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">o32le</tt><big>(</big><em>i</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#o32le"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.o32le" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL._binary.o8"> <tt class="descclassname">PIL._binary.</tt><tt class="descname">o8</tt><big>(</big><em>i</em><big>)</big><a class="reference internal" href="_modules/PIL/_binary.html#o8"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL._binary.o8" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">PIL Package (autodoc of remaining modules)</a><ul> <li><a class="reference internal" href="#bdffontfile-module"><tt class="docutils literal"><span class="pre">BdfFontFile</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.ContainerIO"><tt class="docutils literal"><span class="pre">ContainerIO</span></tt> Module</a></li> <li><a class="reference internal" href="#fontfile-module"><tt class="docutils literal"><span class="pre">FontFile</span></tt> Module</a></li> <li><a class="reference internal" href="#gdimagefile-module"><tt class="docutils literal"><span class="pre">GdImageFile</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.GimpGradientFile"><tt class="docutils literal"><span class="pre">GimpGradientFile</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.GimpPaletteFile"><tt class="docutils literal"><span class="pre">GimpPaletteFile</span></tt> Module</a></li> <li><a class="reference internal" href="#imagedraw2-module"><tt class="docutils literal"><span class="pre">ImageDraw2</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.ImageFileIO"><tt class="docutils literal"><span class="pre">ImageFileIO</span></tt> Module</a></li> <li><a class="reference internal" href="#imageshow-module"><tt class="docutils literal"><span class="pre">ImageShow</span></tt> Module</a></li> <li><a class="reference internal" href="#imagetransform-module"><tt class="docutils literal"><span class="pre">ImageTransform</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.JpegPresets"><tt class="docutils literal"><span class="pre">JpegPresets</span></tt> Module</a><ul> <li><a class="reference internal" href="#subsampling">Subsampling</a></li> <li><a class="reference internal" href="#quantization-tables">Quantization tables</a></li> </ul> </li> <li><a class="reference internal" href="#module-PIL.PaletteFile"><tt class="docutils literal"><span class="pre">PaletteFile</span></tt> Module</a></li> <li><a class="reference internal" href="#pcffontfile-module"><tt class="docutils literal"><span class="pre">PcfFontFile</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.TarIO"><tt class="docutils literal"><span class="pre">TarIO</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.TiffTags"><tt class="docutils literal"><span class="pre">TiffTags</span></tt> Module</a></li> <li><a class="reference internal" href="#walimagefile-module"><tt class="docutils literal"><span class="pre">WalImageFile</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL._binary"><tt class="docutils literal"><span class="pre">_binary</span></tt> Module</a></li> </ul> </li> </ul> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/PIL.txt" rel="nofollow">Show Source</a></li> </ul><h3>Need help?</h3> <p> You can get help via IRC at <a href="irc://irc.freenode.net#pil">irc://irc.freenode.net#pil</a> or Stack Overflow <a href="http://stackoverflow.com/questions/tagged/pillow">here</a> and <a href="http://stackoverflow.com/questions/tagged/pil">here</a>. Please <a href="https://github.com/python-pillow/Pillow/issues/new">report issues on GitHub</a>. </p> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="handbook/appendices.html" title="Appendices" >next</a> |</li> <li class="right" > <a href="reference/PSDraw.html" title="PSDraw Module" >previous</a> |</li> <li><a href="index.html">Home</a> »</li> <li><a href="reference/index.html" >Reference</a> »</li> </ul> </div> <div class="footer"> © Copyright 1997-2011 by Secret Labs AB, 1995-2011 by Fredrik Lundh, 2010-2013 Alex Clark. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3. </div> </body> </html>