<!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 — Pillow (PIL fork) 2.2.0 documentation</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.2.0', 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="top" title="Pillow (PIL fork) 2.2.0 documentation" href="index.html" /> <link rel="prev" title="Welcome to Pillow (PIL fork)’s documentation!" href="index.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="index.html" title="Welcome to Pillow (PIL fork)’s documentation!" accesskey="P">previous</a> |</li> <li><a href="index.html">Pillow (PIL fork) 2.2.0 documentation</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="pil-package"> <h1>PIL Package<a class="headerlink" href="#pil-package" title="Permalink to this headline">¶</a></h1> <div class="section" id="id1"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PIL</span></tt> Package<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2> <span class="target" id="module-PIL.__init__"></span></div> <div class="section" id="argimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ArgImagePlugin</span></tt> Module<a class="headerlink" href="#argimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <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="bmpimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">BmpImagePlugin</span></tt> Module<a class="headerlink" href="#bmpimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="bufrstubimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">BufrStubImagePlugin</span></tt> Module<a class="headerlink" href="#bufrstubimageplugin-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="curimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">CurImagePlugin</span></tt> Module<a class="headerlink" href="#curimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="dcximageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">DcxImagePlugin</span></tt> Module<a class="headerlink" href="#dcximageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="epsimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">EpsImagePlugin</span></tt> Module<a class="headerlink" href="#epsimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.ExifTags"> <span id="exiftags-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ExifTags</span></tt> Module<a class="headerlink" href="#module-PIL.ExifTags" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="fitsstubimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">FitsStubImagePlugin</span></tt> Module<a class="headerlink" href="#fitsstubimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="fliimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">FliImagePlugin</span></tt> Module<a class="headerlink" href="#fliimageplugin-module" title="Permalink to this headline">¶</a></h2> </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="fpximageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">FpxImagePlugin</span></tt> Module<a class="headerlink" href="#fpximageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="gbrimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">GbrImagePlugin</span></tt> Module<a class="headerlink" href="#gbrimageplugin-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="gifimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">GifImagePlugin</span></tt> Module<a class="headerlink" href="#gifimageplugin-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="gribstubimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">GribStubImagePlugin</span></tt> Module<a class="headerlink" href="#gribstubimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="hdf5stubimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">Hdf5StubImagePlugin</span></tt> Module<a class="headerlink" href="#hdf5stubimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="icnsimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">IcnsImagePlugin</span></tt> Module<a class="headerlink" href="#icnsimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="icoimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">IcoImagePlugin</span></tt> Module<a class="headerlink" href="#icoimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImImagePlugin</span></tt> Module<a class="headerlink" href="#imimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="image-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">Image</span></tt> Module<a class="headerlink" href="#image-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagechops-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageChops</span></tt> Module<a class="headerlink" href="#imagechops-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagecms-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageCms</span></tt> Module<a class="headerlink" href="#imagecms-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagecolor-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageColor</span></tt> Module<a class="headerlink" href="#imagecolor-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagedraw-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageDraw</span></tt> Module<a class="headerlink" href="#imagedraw-module" title="Permalink to this headline">¶</a></h2> </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="imageenhance-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageEnhance</span></tt> Module<a class="headerlink" href="#imageenhance-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagefile-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageFile</span></tt> Module<a class="headerlink" href="#imagefile-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 <tt class="xref py py-mod docutils literal"><span class="pre">PIL.ImageFile</span></tt> module instead.</p> <div class="admonition-see-also 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="module-PIL.ImageFilter"> <span id="imagefilter-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageFilter</span></tt> Module<a class="headerlink" href="#module-PIL.ImageFilter" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.ImageFilter.BLUR"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">BLUR</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#BLUR"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.BLUR" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.BLUR.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((5, 5), 16, 0, (1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1))</em><a class="headerlink" href="#PIL.ImageFilter.BLUR.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.BLUR.name"> <tt class="descname">name</tt><em class="property"> = 'Blur'</em><a class="headerlink" href="#PIL.ImageFilter.BLUR.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.BuiltinFilter"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">BuiltinFilter</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#BuiltinFilter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.BuiltinFilter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.Kernel" title="PIL.ImageFilter.Kernel"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.Kernel</span></tt></a></p> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.CONTOUR"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">CONTOUR</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#CONTOUR"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.CONTOUR" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.CONTOUR.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 1, 255, (-1, -1, -1, -1, 8, -1, -1, -1, -1))</em><a class="headerlink" href="#PIL.ImageFilter.CONTOUR.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.CONTOUR.name"> <tt class="descname">name</tt><em class="property"> = 'Contour'</em><a class="headerlink" href="#PIL.ImageFilter.CONTOUR.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.DETAIL"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">DETAIL</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#DETAIL"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.DETAIL" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.DETAIL.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 6, 0, (0, -1, 0, -1, 10, -1, 0, -1, 0))</em><a class="headerlink" href="#PIL.ImageFilter.DETAIL.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.DETAIL.name"> <tt class="descname">name</tt><em class="property"> = 'Detail'</em><a class="headerlink" href="#PIL.ImageFilter.DETAIL.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.EDGE_ENHANCE"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">EDGE_ENHANCE</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#EDGE_ENHANCE"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.EDGE_ENHANCE" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.EDGE_ENHANCE.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 2, 0, (-1, -1, -1, -1, 10, -1, -1, -1, -1))</em><a class="headerlink" href="#PIL.ImageFilter.EDGE_ENHANCE.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.EDGE_ENHANCE.name"> <tt class="descname">name</tt><em class="property"> = 'Edge-enhance'</em><a class="headerlink" href="#PIL.ImageFilter.EDGE_ENHANCE.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.EDGE_ENHANCE_MORE"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">EDGE_ENHANCE_MORE</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#EDGE_ENHANCE_MORE"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.EDGE_ENHANCE_MORE" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.EDGE_ENHANCE_MORE.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 1, 0, (-1, -1, -1, -1, 9, -1, -1, -1, -1))</em><a class="headerlink" href="#PIL.ImageFilter.EDGE_ENHANCE_MORE.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.EDGE_ENHANCE_MORE.name"> <tt class="descname">name</tt><em class="property"> = 'Edge-enhance More'</em><a class="headerlink" href="#PIL.ImageFilter.EDGE_ENHANCE_MORE.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.EMBOSS"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">EMBOSS</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#EMBOSS"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.EMBOSS" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.EMBOSS.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 1, 128, (-1, 0, 0, 0, 1, 0, 0, 0, 0))</em><a class="headerlink" href="#PIL.ImageFilter.EMBOSS.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.EMBOSS.name"> <tt class="descname">name</tt><em class="property"> = 'Emboss'</em><a class="headerlink" href="#PIL.ImageFilter.EMBOSS.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.FIND_EDGES"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">FIND_EDGES</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#FIND_EDGES"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.FIND_EDGES" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.FIND_EDGES.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 1, 0, (-1, -1, -1, -1, 8, -1, -1, -1, -1))</em><a class="headerlink" href="#PIL.ImageFilter.FIND_EDGES.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.FIND_EDGES.name"> <tt class="descname">name</tt><em class="property"> = 'Find Edges'</em><a class="headerlink" href="#PIL.ImageFilter.FIND_EDGES.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.Filter"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">Filter</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#Filter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.Filter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.GaussianBlur"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">GaussianBlur</tt><big>(</big><em>radius=2</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#GaussianBlur"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.GaussianBlur" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.Filter" title="PIL.ImageFilter.Filter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.Filter</span></tt></a></p> <dl class="method"> <dt id="PIL.ImageFilter.GaussianBlur.filter"> <tt class="descname">filter</tt><big>(</big><em>image</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#GaussianBlur.filter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.GaussianBlur.filter" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.GaussianBlur.name"> <tt class="descname">name</tt><em class="property"> = 'GaussianBlur'</em><a class="headerlink" href="#PIL.ImageFilter.GaussianBlur.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.Kernel"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">Kernel</tt><big>(</big><em>size</em>, <em>kernel</em>, <em>scale=None</em>, <em>offset=0</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#Kernel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.Kernel" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.Filter" title="PIL.ImageFilter.Filter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.Filter</span></tt></a></p> <dl class="method"> <dt id="PIL.ImageFilter.Kernel.filter"> <tt class="descname">filter</tt><big>(</big><em>image</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#Kernel.filter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.Kernel.filter" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.MaxFilter"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">MaxFilter</tt><big>(</big><em>size=3</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#MaxFilter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.MaxFilter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.RankFilter" title="PIL.ImageFilter.RankFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.RankFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.MaxFilter.name"> <tt class="descname">name</tt><em class="property"> = 'Max'</em><a class="headerlink" href="#PIL.ImageFilter.MaxFilter.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.MedianFilter"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">MedianFilter</tt><big>(</big><em>size=3</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#MedianFilter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.MedianFilter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.RankFilter" title="PIL.ImageFilter.RankFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.RankFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.MedianFilter.name"> <tt class="descname">name</tt><em class="property"> = 'Median'</em><a class="headerlink" href="#PIL.ImageFilter.MedianFilter.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.MinFilter"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">MinFilter</tt><big>(</big><em>size=3</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#MinFilter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.MinFilter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.RankFilter" title="PIL.ImageFilter.RankFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.RankFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.MinFilter.name"> <tt class="descname">name</tt><em class="property"> = 'Min'</em><a class="headerlink" href="#PIL.ImageFilter.MinFilter.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.ModeFilter"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">ModeFilter</tt><big>(</big><em>size=3</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#ModeFilter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.ModeFilter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.Filter" title="PIL.ImageFilter.Filter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.Filter</span></tt></a></p> <dl class="method"> <dt id="PIL.ImageFilter.ModeFilter.filter"> <tt class="descname">filter</tt><big>(</big><em>image</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#ModeFilter.filter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.ModeFilter.filter" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.ModeFilter.name"> <tt class="descname">name</tt><em class="property"> = 'Mode'</em><a class="headerlink" href="#PIL.ImageFilter.ModeFilter.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.RankFilter"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">RankFilter</tt><big>(</big><em>size</em>, <em>rank</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#RankFilter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.RankFilter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.Filter" title="PIL.ImageFilter.Filter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.Filter</span></tt></a></p> <dl class="method"> <dt id="PIL.ImageFilter.RankFilter.filter"> <tt class="descname">filter</tt><big>(</big><em>image</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#RankFilter.filter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.RankFilter.filter" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.RankFilter.name"> <tt class="descname">name</tt><em class="property"> = 'Rank'</em><a class="headerlink" href="#PIL.ImageFilter.RankFilter.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.SHARPEN"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">SHARPEN</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#SHARPEN"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.SHARPEN" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.SHARPEN.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 16, 0, (-2, -2, -2, -2, 32, -2, -2, -2, -2))</em><a class="headerlink" href="#PIL.ImageFilter.SHARPEN.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.SHARPEN.name"> <tt class="descname">name</tt><em class="property"> = 'Sharpen'</em><a class="headerlink" href="#PIL.ImageFilter.SHARPEN.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.SMOOTH"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">SMOOTH</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#SMOOTH"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.SMOOTH" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.SMOOTH.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((3, 3), 13, 0, (1, 1, 1, 1, 5, 1, 1, 1, 1))</em><a class="headerlink" href="#PIL.ImageFilter.SMOOTH.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.SMOOTH.name"> <tt class="descname">name</tt><em class="property"> = 'Smooth'</em><a class="headerlink" href="#PIL.ImageFilter.SMOOTH.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.SMOOTH_MORE"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">SMOOTH_MORE</tt><a class="reference internal" href="_modules/PIL/ImageFilter.html#SMOOTH_MORE"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.SMOOTH_MORE" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.BuiltinFilter" title="PIL.ImageFilter.BuiltinFilter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.BuiltinFilter</span></tt></a></p> <dl class="attribute"> <dt id="PIL.ImageFilter.SMOOTH_MORE.filterargs"> <tt class="descname">filterargs</tt><em class="property"> = ((5, 5), 100, 0, (1, 1, 1, 1, 1, 1, 5, 5, 5, 1, 1, 5, 44, 5, 1, 1, 5, 5, 5, 1, 1, 1, 1, 1, 1))</em><a class="headerlink" href="#PIL.ImageFilter.SMOOTH_MORE.filterargs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.SMOOTH_MORE.name"> <tt class="descname">name</tt><em class="property"> = 'Smooth More'</em><a class="headerlink" href="#PIL.ImageFilter.SMOOTH_MORE.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.ImageFilter.UnsharpMask"> <em class="property">class </em><tt class="descclassname">PIL.ImageFilter.</tt><tt class="descname">UnsharpMask</tt><big>(</big><em>radius=2</em>, <em>percent=150</em>, <em>threshold=3</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#UnsharpMask"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.UnsharpMask" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.ImageFilter.Filter" title="PIL.ImageFilter.Filter"><tt class="xref py py-class docutils literal"><span class="pre">PIL.ImageFilter.Filter</span></tt></a></p> <dl class="method"> <dt id="PIL.ImageFilter.UnsharpMask.filter"> <tt class="descname">filter</tt><big>(</big><em>image</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageFilter.html#UnsharpMask.filter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageFilter.UnsharpMask.filter" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImageFilter.UnsharpMask.name"> <tt class="descname">name</tt><em class="property"> = 'UnsharpMask'</em><a class="headerlink" href="#PIL.ImageFilter.UnsharpMask.name" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="imagefont-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageFont</span></tt> Module<a class="headerlink" href="#imagefont-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagemath-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageMath</span></tt> Module<a class="headerlink" href="#imagemath-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.ImageMode"> <span id="imagemode-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageMode</span></tt> Module<a class="headerlink" href="#module-PIL.ImageMode" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.ImageMode.ModeDescriptor"> <em class="property">class </em><tt class="descclassname">PIL.ImageMode.</tt><tt class="descname">ModeDescriptor</tt><big>(</big><em>mode</em>, <em>bands</em>, <em>basemode</em>, <em>basetype</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageMode.html#ModeDescriptor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageMode.ModeDescriptor" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.ImageMode.getmode"> <tt class="descclassname">PIL.ImageMode.</tt><tt class="descname">getmode</tt><big>(</big><em>mode</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageMode.html#getmode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageMode.getmode" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="imageops-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageOps</span></tt> Module<a class="headerlink" href="#imageops-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagepalette-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImagePalette</span></tt> Module<a class="headerlink" href="#imagepalette-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagepath-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImagePath</span></tt> Module<a class="headerlink" href="#imagepath-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imageqt-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageQt</span></tt> Module<a class="headerlink" href="#imageqt-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.ImageSequence"> <span id="imagesequence-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageSequence</span></tt> Module<a class="headerlink" href="#module-PIL.ImageSequence" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.ImageSequence.Iterator"> <em class="property">class </em><tt class="descclassname">PIL.ImageSequence.</tt><tt class="descname">Iterator</tt><big>(</big><em>im</em><big>)</big><a class="reference internal" href="_modules/PIL/ImageSequence.html#Iterator"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImageSequence.Iterator" title="Permalink to this definition">¶</a></dt> <dd></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="imagestat-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageStat</span></tt> Module<a class="headerlink" href="#imagestat-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imagetk-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageTk</span></tt> Module<a class="headerlink" href="#imagetk-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="imagewin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImageWin</span></tt> Module<a class="headerlink" href="#imagewin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="imtimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">ImtImagePlugin</span></tt> Module<a class="headerlink" href="#imtimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="iptcimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">IptcImagePlugin</span></tt> Module<a class="headerlink" href="#iptcimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="jpegimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">JpegImagePlugin</span></tt> Module<a class="headerlink" href="#jpegimageplugin-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="mcidasimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">McIdasImagePlugin</span></tt> Module<a class="headerlink" href="#mcidasimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="micimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">MicImagePlugin</span></tt> Module<a class="headerlink" href="#micimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="mpegimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">MpegImagePlugin</span></tt> Module<a class="headerlink" href="#mpegimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="mspimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">MspImagePlugin</span></tt> Module<a class="headerlink" href="#mspimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.OleFileIO"> <span id="olefileio-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">OleFileIO</span></tt> Module<a class="headerlink" href="#module-PIL.OleFileIO" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.OleFileIO.OleFileIO"> <em class="property">class </em><tt class="descclassname">PIL.OleFileIO.</tt><tt class="descname">OleFileIO</tt><big>(</big><em>filename=None</em><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO" title="Permalink to this definition">¶</a></dt> <dd><p>OLE container object</p> <p>This class encapsulates the interface to an OLE 2 structured storage file. Use the listdir and openstream methods to access the contents of this file.</p> <p>Object names are given as a list of strings, one for each subentry level. The root entry should be omitted. For example, the following code extracts all image streams from a Microsoft Image Composer file:</p> <div class="highlight-python"><div class="highlight"><pre><span class="n">ole</span> <span class="o">=</span> <span class="n">OleFileIO</span><span class="p">(</span><span class="s">"fan.mic"</span><span class="p">)</span> <span class="k">for</span> <span class="n">entry</span> <span class="ow">in</span> <span class="n">ole</span><span class="o">.</span><span class="n">listdir</span><span class="p">():</span> <span class="k">if</span> <span class="n">entry</span><span class="p">[</span><span class="mi">1</span><span class="p">:</span><span class="mi">2</span><span class="p">]</span> <span class="o">==</span> <span class="s">"Image"</span><span class="p">:</span> <span class="n">fin</span> <span class="o">=</span> <span class="n">ole</span><span class="o">.</span><span class="n">openstream</span><span class="p">(</span><span class="n">entry</span><span class="p">)</span> <span class="n">fout</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="n">entry</span><span class="p">[</span><span class="mi">0</span><span class="p">:</span><span class="mi">1</span><span class="p">],</span> <span class="s">"wb"</span><span class="p">)</span> <span class="k">while</span> <span class="mi">1</span><span class="p">:</span> <span class="n">s</span> <span class="o">=</span> <span class="n">fin</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="mi">8192</span><span class="p">)</span> <span class="k">if</span> <span class="ow">not</span> <span class="n">s</span><span class="p">:</span> <span class="k">break</span> <span class="n">fout</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> </div> <p>You can use the viewer application provided with the Python Imaging Library to view the resulting files (which happens to be standard TIFF files).</p> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.dumpdirectory"> <tt class="descname">dumpdirectory</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.dumpdirectory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.dumpdirectory" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.getproperties"> <tt class="descname">getproperties</tt><big>(</big><em>filename</em><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.getproperties"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.getproperties" title="Permalink to this definition">¶</a></dt> <dd><p>Return properties described in substream</p> </dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.getsect"> <tt class="descname">getsect</tt><big>(</big><em>sect</em><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.getsect"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.getsect" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.listdir"> <tt class="descname">listdir</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.listdir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.listdir" title="Permalink to this definition">¶</a></dt> <dd><p>Return a list of streams stored in this file</p> </dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.loaddirectory"> <tt class="descname">loaddirectory</tt><big>(</big><em>sect</em><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.loaddirectory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.loaddirectory" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.loadfat"> <tt class="descname">loadfat</tt><big>(</big><em>header</em><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.loadfat"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.loadfat" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.loadminifat"> <tt class="descname">loadminifat</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.loadminifat"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.loadminifat" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.open"> <tt class="descname">open</tt><big>(</big><em>filename</em><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.open" title="Permalink to this definition">¶</a></dt> <dd><p>Open an OLE2 file</p> </dd></dl> <dl class="method"> <dt id="PIL.OleFileIO.OleFileIO.openstream"> <tt class="descname">openstream</tt><big>(</big><em>filename</em><big>)</big><a class="reference internal" href="_modules/PIL/OleFileIO.html#OleFileIO.openstream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.OleFileIO.OleFileIO.openstream" title="Permalink to this definition">¶</a></dt> <dd><p>Open a stream as a read-only file object</p> </dd></dl> </dd></dl> </div> <div class="section" id="psdraw-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PSDraw</span></tt> Module<a class="headerlink" href="#psdraw-module" title="Permalink to this headline">¶</a></h2> </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="palmimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PalmImagePlugin</span></tt> Module<a class="headerlink" href="#palmimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="pcdimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PcdImagePlugin</span></tt> Module<a class="headerlink" href="#pcdimageplugin-module" title="Permalink to this headline">¶</a></h2> </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="pcximageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PcxImagePlugin</span></tt> Module<a class="headerlink" href="#pcximageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="pdfimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PdfImagePlugin</span></tt> Module<a class="headerlink" href="#pdfimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="pixarimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PixarImagePlugin</span></tt> Module<a class="headerlink" href="#pixarimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="pngimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PngImagePlugin</span></tt> Module<a class="headerlink" href="#pngimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="ppmimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PpmImagePlugin</span></tt> Module<a class="headerlink" href="#ppmimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="psdimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">PsdImagePlugin</span></tt> Module<a class="headerlink" href="#psdimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="sgiimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">SgiImagePlugin</span></tt> Module<a class="headerlink" href="#sgiimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="spiderimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">SpiderImagePlugin</span></tt> Module<a class="headerlink" href="#spiderimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="sunimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">SunImagePlugin</span></tt> Module<a class="headerlink" href="#sunimageplugin-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="tgaimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">TgaImagePlugin</span></tt> Module<a class="headerlink" href="#tgaimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="tiffimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">TiffImagePlugin</span></tt> Module<a class="headerlink" href="#tiffimageplugin-module" title="Permalink to this headline">¶</a></h2> </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="webpimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">WebPImagePlugin</span></tt> Module<a class="headerlink" href="#webpimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="wmfimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">WmfImagePlugin</span></tt> Module<a class="headerlink" href="#wmfimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="xvthumbimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">XVThumbImagePlugin</span></tt> Module<a class="headerlink" href="#xvthumbimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="xbmimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">XbmImagePlugin</span></tt> Module<a class="headerlink" href="#xbmimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="xpmimageplugin-module"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">XpmImagePlugin</span></tt> Module<a class="headerlink" href="#xpmimageplugin-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></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></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</a><ul> <li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">PIL</span></tt> Package</a></li> <li><a class="reference internal" href="#argimageplugin-module"><tt class="docutils literal"><span class="pre">ArgImagePlugin</span></tt> Module</a></li> <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="#bmpimageplugin-module"><tt class="docutils literal"><span class="pre">BmpImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#bufrstubimageplugin-module"><tt class="docutils literal"><span class="pre">BufrStubImagePlugin</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="#curimageplugin-module"><tt class="docutils literal"><span class="pre">CurImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#dcximageplugin-module"><tt class="docutils literal"><span class="pre">DcxImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#epsimageplugin-module"><tt class="docutils literal"><span class="pre">EpsImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.ExifTags"><tt class="docutils literal"><span class="pre">ExifTags</span></tt> Module</a></li> <li><a class="reference internal" href="#fitsstubimageplugin-module"><tt class="docutils literal"><span class="pre">FitsStubImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#fliimageplugin-module"><tt class="docutils literal"><span class="pre">FliImagePlugin</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="#fpximageplugin-module"><tt class="docutils literal"><span class="pre">FpxImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#gbrimageplugin-module"><tt class="docutils literal"><span class="pre">GbrImagePlugin</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="#gifimageplugin-module"><tt class="docutils literal"><span class="pre">GifImagePlugin</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="#gribstubimageplugin-module"><tt class="docutils literal"><span class="pre">GribStubImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#hdf5stubimageplugin-module"><tt class="docutils literal"><span class="pre">Hdf5StubImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#icnsimageplugin-module"><tt class="docutils literal"><span class="pre">IcnsImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#icoimageplugin-module"><tt class="docutils literal"><span class="pre">IcoImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#imimageplugin-module"><tt class="docutils literal"><span class="pre">ImImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#image-module"><tt class="docutils literal"><span class="pre">Image</span></tt> Module</a></li> <li><a class="reference internal" href="#imagechops-module"><tt class="docutils literal"><span class="pre">ImageChops</span></tt> Module</a></li> <li><a class="reference internal" href="#imagecms-module"><tt class="docutils literal"><span class="pre">ImageCms</span></tt> Module</a></li> <li><a class="reference internal" href="#imagecolor-module"><tt class="docutils literal"><span class="pre">ImageColor</span></tt> Module</a></li> <li><a class="reference internal" href="#imagedraw-module"><tt class="docutils literal"><span class="pre">ImageDraw</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="#imageenhance-module"><tt class="docutils literal"><span class="pre">ImageEnhance</span></tt> Module</a></li> <li><a class="reference internal" href="#imagefile-module"><tt class="docutils literal"><span class="pre">ImageFile</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="#module-PIL.ImageFilter"><tt class="docutils literal"><span class="pre">ImageFilter</span></tt> Module</a></li> <li><a class="reference internal" href="#imagefont-module"><tt class="docutils literal"><span class="pre">ImageFont</span></tt> Module</a></li> <li><a class="reference internal" href="#imagemath-module"><tt class="docutils literal"><span class="pre">ImageMath</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.ImageMode"><tt class="docutils literal"><span class="pre">ImageMode</span></tt> Module</a></li> <li><a class="reference internal" href="#imageops-module"><tt class="docutils literal"><span class="pre">ImageOps</span></tt> Module</a></li> <li><a class="reference internal" href="#imagepalette-module"><tt class="docutils literal"><span class="pre">ImagePalette</span></tt> Module</a></li> <li><a class="reference internal" href="#imagepath-module"><tt class="docutils literal"><span class="pre">ImagePath</span></tt> Module</a></li> <li><a class="reference internal" href="#imageqt-module"><tt class="docutils literal"><span class="pre">ImageQt</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.ImageSequence"><tt class="docutils literal"><span class="pre">ImageSequence</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="#imagestat-module"><tt class="docutils literal"><span class="pre">ImageStat</span></tt> Module</a></li> <li><a class="reference internal" href="#imagetk-module"><tt class="docutils literal"><span class="pre">ImageTk</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="#imagewin-module"><tt class="docutils literal"><span class="pre">ImageWin</span></tt> Module</a></li> <li><a class="reference internal" href="#imtimageplugin-module"><tt class="docutils literal"><span class="pre">ImtImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#iptcimageplugin-module"><tt class="docutils literal"><span class="pre">IptcImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#jpegimageplugin-module"><tt class="docutils literal"><span class="pre">JpegImagePlugin</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="#mcidasimageplugin-module"><tt class="docutils literal"><span class="pre">McIdasImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#micimageplugin-module"><tt class="docutils literal"><span class="pre">MicImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#mpegimageplugin-module"><tt class="docutils literal"><span class="pre">MpegImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#mspimageplugin-module"><tt class="docutils literal"><span class="pre">MspImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#module-PIL.OleFileIO"><tt class="docutils literal"><span class="pre">OleFileIO</span></tt> Module</a></li> <li><a class="reference internal" href="#psdraw-module"><tt class="docutils literal"><span class="pre">PSDraw</span></tt> Module</a></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="#palmimageplugin-module"><tt class="docutils literal"><span class="pre">PalmImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#pcdimageplugin-module"><tt class="docutils literal"><span class="pre">PcdImagePlugin</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="#pcximageplugin-module"><tt class="docutils literal"><span class="pre">PcxImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#pdfimageplugin-module"><tt class="docutils literal"><span class="pre">PdfImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#pixarimageplugin-module"><tt class="docutils literal"><span class="pre">PixarImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#pngimageplugin-module"><tt class="docutils literal"><span class="pre">PngImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#ppmimageplugin-module"><tt class="docutils literal"><span class="pre">PpmImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#psdimageplugin-module"><tt class="docutils literal"><span class="pre">PsdImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#sgiimageplugin-module"><tt class="docutils literal"><span class="pre">SgiImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#spiderimageplugin-module"><tt class="docutils literal"><span class="pre">SpiderImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#sunimageplugin-module"><tt class="docutils literal"><span class="pre">SunImagePlugin</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="#tgaimageplugin-module"><tt class="docutils literal"><span class="pre">TgaImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#tiffimageplugin-module"><tt class="docutils literal"><span class="pre">TiffImagePlugin</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="#webpimageplugin-module"><tt class="docutils literal"><span class="pre">WebPImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#wmfimageplugin-module"><tt class="docutils literal"><span class="pre">WmfImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#xvthumbimageplugin-module"><tt class="docutils literal"><span class="pre">XVThumbImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#xbmimageplugin-module"><tt class="docutils literal"><span class="pre">XbmImagePlugin</span></tt> Module</a></li> <li><a class="reference internal" href="#xpmimageplugin-module"><tt class="docutils literal"><span class="pre">XpmImagePlugin</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> <h4>Previous topic</h4> <p class="topless"><a href="index.html" title="previous chapter">Welcome to Pillow (PIL fork)’s documentation!</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/PIL.txt" rel="nofollow">Show Source</a></li> </ul> <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="index.html" title="Welcome to Pillow (PIL fork)’s documentation!" >previous</a> |</li> <li><a href="index.html">Pillow (PIL fork) 2.2.0 documentation</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.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>