<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Plugin reference — Pillow (PIL Fork) 5.4.1 documentation</title> <script type="text/javascript" src="../_static/js/modernizr.min.js"></script> <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></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> <script type="text/javascript" src="../_static/language_data.js"></script> <script type="text/javascript" src="../_static/js/script.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="author" title="About these documents" href="../about.html" /> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="Internal Reference Docs" href="internal_design.html" /> <link rel="prev" title="PIL Package (autodoc of remaining modules)" href="../PIL.html" /> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="../index.html" class="icon icon-home"> Pillow (PIL Fork) </a> <div class="version"> 5.4.1 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="../handbook/index.html">Handbook</a></li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Reference</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="Image.html"><code class="docutils literal notranslate"><span class="pre">Image</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageChops.html"><code class="docutils literal notranslate"><span class="pre">ImageChops</span></code> (“Channel Operations”) Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageColor.html"><code class="docutils literal notranslate"><span class="pre">ImageColor</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageCms.html"><code class="docutils literal notranslate"><span class="pre">ImageCms</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageDraw.html"><code class="docutils literal notranslate"><span class="pre">ImageDraw</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageEnhance.html"><code class="docutils literal notranslate"><span class="pre">ImageEnhance</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageFile.html"><code class="docutils literal notranslate"><span class="pre">ImageFile</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageFilter.html"><code class="docutils literal notranslate"><span class="pre">ImageFilter</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageFont.html"><code class="docutils literal notranslate"><span class="pre">ImageFont</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageGrab.html"><code class="docutils literal notranslate"><span class="pre">ImageGrab</span></code> Module (macOS and Windows only)</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageMath.html"><code class="docutils literal notranslate"><span class="pre">ImageMath</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageMorph.html"><code class="docutils literal notranslate"><span class="pre">ImageMorph</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageOps.html"><code class="docutils literal notranslate"><span class="pre">ImageOps</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImagePalette.html"><code class="docutils literal notranslate"><span class="pre">ImagePalette</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImagePath.html"><code class="docutils literal notranslate"><span class="pre">ImagePath</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageQt.html"><code class="docutils literal notranslate"><span class="pre">ImageQt</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageSequence.html"><code class="docutils literal notranslate"><span class="pre">ImageSequence</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageStat.html"><code class="docutils literal notranslate"><span class="pre">ImageStat</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageTk.html"><code class="docutils literal notranslate"><span class="pre">ImageTk</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="ImageWin.html"><code class="docutils literal notranslate"><span class="pre">ImageWin</span></code> Module (Windows-only)</a></li> <li class="toctree-l2"><a class="reference internal" href="ExifTags.html"><code class="docutils literal notranslate"><span class="pre">ExifTags</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="TiffTags.html"><code class="docutils literal notranslate"><span class="pre">TiffTags</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="PSDraw.html"><code class="docutils literal notranslate"><span class="pre">PSDraw</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="PixelAccess.html"><code class="docutils literal notranslate"><span class="pre">PixelAccess</span></code> Class</a></li> <li class="toctree-l2"><a class="reference internal" href="PyAccess.html"><code class="docutils literal notranslate"><span class="pre">PyAccess</span></code> Module</a></li> <li class="toctree-l2"><a class="reference internal" href="../PIL.html">PIL Package (autodoc of remaining modules)</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="#">Plugin reference</a><ul> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.BmpImagePlugin"><code class="docutils literal notranslate"><span class="pre">BmpImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.BufrStubImagePlugin"><code class="docutils literal notranslate"><span class="pre">BufrStubImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.CurImagePlugin"><code class="docutils literal notranslate"><span class="pre">CurImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.DcxImagePlugin"><code class="docutils literal notranslate"><span class="pre">DcxImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.EpsImagePlugin"><code class="docutils literal notranslate"><span class="pre">EpsImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.FitsStubImagePlugin"><code class="docutils literal notranslate"><span class="pre">FitsStubImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.FliImagePlugin"><code class="docutils literal notranslate"><span class="pre">FliImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#fpximageplugin-module"><code class="docutils literal notranslate"><span class="pre">FpxImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.GbrImagePlugin"><code class="docutils literal notranslate"><span class="pre">GbrImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.GifImagePlugin"><code class="docutils literal notranslate"><span class="pre">GifImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.GribStubImagePlugin"><code class="docutils literal notranslate"><span class="pre">GribStubImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.Hdf5StubImagePlugin"><code class="docutils literal notranslate"><span class="pre">Hdf5StubImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.IcnsImagePlugin"><code class="docutils literal notranslate"><span class="pre">IcnsImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.IcoImagePlugin"><code class="docutils literal notranslate"><span class="pre">IcoImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.ImImagePlugin"><code class="docutils literal notranslate"><span class="pre">ImImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.ImtImagePlugin"><code class="docutils literal notranslate"><span class="pre">ImtImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.IptcImagePlugin"><code class="docutils literal notranslate"><span class="pre">IptcImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.JpegImagePlugin"><code class="docutils literal notranslate"><span class="pre">JpegImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.Jpeg2KImagePlugin"><code class="docutils literal notranslate"><span class="pre">Jpeg2KImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.McIdasImagePlugin"><code class="docutils literal notranslate"><span class="pre">McIdasImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#micimageplugin-module"><code class="docutils literal notranslate"><span class="pre">MicImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.MpegImagePlugin"><code class="docutils literal notranslate"><span class="pre">MpegImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.MspImagePlugin"><code class="docutils literal notranslate"><span class="pre">MspImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PalmImagePlugin"><code class="docutils literal notranslate"><span class="pre">PalmImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PcdImagePlugin"><code class="docutils literal notranslate"><span class="pre">PcdImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PcxImagePlugin"><code class="docutils literal notranslate"><span class="pre">PcxImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PdfImagePlugin"><code class="docutils literal notranslate"><span class="pre">PdfImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PixarImagePlugin"><code class="docutils literal notranslate"><span class="pre">PixarImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PngImagePlugin"><code class="docutils literal notranslate"><span class="pre">PngImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PpmImagePlugin"><code class="docutils literal notranslate"><span class="pre">PpmImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.PsdImagePlugin"><code class="docutils literal notranslate"><span class="pre">PsdImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.SgiImagePlugin"><code class="docutils literal notranslate"><span class="pre">SgiImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.SpiderImagePlugin"><code class="docutils literal notranslate"><span class="pre">SpiderImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.SunImagePlugin"><code class="docutils literal notranslate"><span class="pre">SunImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.TgaImagePlugin"><code class="docutils literal notranslate"><span class="pre">TgaImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.TiffImagePlugin"><code class="docutils literal notranslate"><span class="pre">TiffImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.WebPImagePlugin"><code class="docutils literal notranslate"><span class="pre">WebPImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.WmfImagePlugin"><code class="docutils literal notranslate"><span class="pre">WmfImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.XVThumbImagePlugin"><code class="docutils literal notranslate"><span class="pre">XVThumbImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.XbmImagePlugin"><code class="docutils literal notranslate"><span class="pre">XbmImagePlugin</span></code> Module</a></li> <li class="toctree-l3"><a class="reference internal" href="#module-PIL.XpmImagePlugin"><code class="docutils literal notranslate"><span class="pre">XpmImagePlugin</span></code> Module</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="internal_design.html">Internal Reference Docs</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../porting.html">Porting</a></li> <li class="toctree-l1"><a class="reference internal" href="../about.html">About</a></li> <li class="toctree-l1"><a class="reference internal" href="../releasenotes/index.html">Release Notes</a></li> <li class="toctree-l1"><a class="reference internal" href="../deprecations.html">Deprecations and removals</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">Pillow (PIL Fork)</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> »</li> <li><a href="index.html">Reference</a> »</li> <li>Plugin reference</li> <li class="wy-breadcrumbs-aside"> <a href="../_sources/reference/plugins.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="plugin-reference"> <h1>Plugin reference<a class="headerlink" href="#plugin-reference" title="Permalink to this headline">¶</a></h1> <div class="section" id="module-PIL.BmpImagePlugin"> <span id="bmpimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">BmpImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.BmpImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.BmpImagePlugin.BmpImageFile"> <em class="property">class </em><code class="descclassname">PIL.BmpImagePlugin.</code><code class="descname">BmpImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/BmpImagePlugin.html#BmpImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <p>Image plugin for the Windows Bitmap format (BMP)</p> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.BITFIELDS"> <code class="descname">BITFIELDS</code><em class="property"> = 3</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.BITFIELDS" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.COMPRESSIONS"> <code class="descname">COMPRESSIONS</code><em class="property"> = {'BITFIELDS': 3, 'JPEG': 4, 'PNG': 5, 'RAW': 0, 'RLE4': 2, 'RLE8': 1}</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.COMPRESSIONS" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.JPEG"> <code class="descname">JPEG</code><em class="property"> = 4</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.JPEG" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.PNG"> <code class="descname">PNG</code><em class="property"> = 5</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.PNG" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.RAW"> <code class="descname">RAW</code><em class="property"> = 0</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.RAW" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.RLE4"> <code class="descname">RLE4</code><em class="property"> = 2</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.RLE4" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.RLE8"> <code class="descname">RLE8</code><em class="property"> = 1</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.RLE8" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.format"> <code class="descname">format</code><em class="property"> = 'BMP'</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.BmpImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Windows Bitmap'</em><a class="headerlink" href="#PIL.BmpImagePlugin.BmpImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.BmpImagePlugin.DibImageFile"> <em class="property">class </em><code class="descclassname">PIL.BmpImagePlugin.</code><code class="descname">DibImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/BmpImagePlugin.html#DibImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.BmpImagePlugin.DibImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.BmpImagePlugin.BmpImageFile" title="PIL.BmpImagePlugin.BmpImageFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.BmpImagePlugin.BmpImageFile</span></code></a></p> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.DibImageFile.format"> <code class="descname">format</code><em class="property"> = 'DIB'</em><a class="headerlink" href="#PIL.BmpImagePlugin.DibImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BmpImagePlugin.DibImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Windows Bitmap'</em><a class="headerlink" href="#PIL.BmpImagePlugin.DibImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.BufrStubImagePlugin"> <span id="bufrstubimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">BufrStubImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.BufrStubImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.BufrStubImagePlugin.BufrStubImageFile"> <em class="property">class </em><code class="descclassname">PIL.BufrStubImagePlugin.</code><code class="descname">BufrStubImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/BufrStubImagePlugin.html#BufrStubImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.BufrStubImagePlugin.BufrStubImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.StubImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.BufrStubImagePlugin.BufrStubImageFile.format"> <code class="descname">format</code><em class="property"> = 'BUFR'</em><a class="headerlink" href="#PIL.BufrStubImagePlugin.BufrStubImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.BufrStubImagePlugin.BufrStubImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'BUFR'</em><a class="headerlink" href="#PIL.BufrStubImagePlugin.BufrStubImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.BufrStubImagePlugin.register_handler"> <code class="descclassname">PIL.BufrStubImagePlugin.</code><code class="descname">register_handler</code><span class="sig-paren">(</span><em>handler</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/BufrStubImagePlugin.html#register_handler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.BufrStubImagePlugin.register_handler" title="Permalink to this definition">¶</a></dt> <dd><p>Install application-specific BUFR image handler.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>handler</strong> – Handler object.</td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-PIL.CurImagePlugin"> <span id="curimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">CurImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.CurImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.CurImagePlugin.CurImageFile"> <em class="property">class </em><code class="descclassname">PIL.CurImagePlugin.</code><code class="descname">CurImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/CurImagePlugin.html#CurImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.CurImagePlugin.CurImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.BmpImagePlugin.BmpImageFile" title="PIL.BmpImagePlugin.BmpImageFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.BmpImagePlugin.BmpImageFile</span></code></a></p> <dl class="attribute"> <dt id="PIL.CurImagePlugin.CurImageFile.format"> <code class="descname">format</code><em class="property"> = 'CUR'</em><a class="headerlink" href="#PIL.CurImagePlugin.CurImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.CurImagePlugin.CurImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Windows Cursor'</em><a class="headerlink" href="#PIL.CurImagePlugin.CurImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.DcxImagePlugin"> <span id="dcximageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">DcxImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.DcxImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.DcxImagePlugin.DcxImageFile"> <em class="property">class </em><code class="descclassname">PIL.DcxImagePlugin.</code><code class="descname">DcxImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/DcxImagePlugin.html#DcxImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.DcxImagePlugin.DcxImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.PcxImagePlugin.PcxImageFile" title="PIL.PcxImagePlugin.PcxImageFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.PcxImagePlugin.PcxImageFile</span></code></a></p> <dl class="attribute"> <dt id="PIL.DcxImagePlugin.DcxImageFile.format"> <code class="descname">format</code><em class="property"> = 'DCX'</em><a class="headerlink" href="#PIL.DcxImagePlugin.DcxImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.DcxImagePlugin.DcxImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Intel DCX'</em><a class="headerlink" href="#PIL.DcxImagePlugin.DcxImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.DcxImagePlugin.DcxImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.DcxImagePlugin.DcxImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.DcxImagePlugin.DcxImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.DcxImagePlugin.DcxImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.DcxImagePlugin.DcxImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>frame</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/DcxImagePlugin.html#DcxImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.DcxImagePlugin.DcxImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Seeks to the given frame in this sequence file. If you seek beyond the end of the sequence, the method raises an <strong>EOFError</strong> exception. When a sequence file is opened, the library automatically seeks to frame 0.</p> <p>Note that in the current version of the library, most sequence formats only allows you to seek to the next frame.</p> <p>See <a class="reference internal" href="Image.html#PIL.Image.Image.tell" title="PIL.Image.Image.tell"><code class="xref py py-meth docutils literal notranslate"><span class="pre">tell()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>frame</strong> – Frame number, starting at 0.</td> </tr> <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><strong>EOFError</strong> – If the call attempts to seek beyond the end of the sequence.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.DcxImagePlugin.DcxImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/DcxImagePlugin.html#DcxImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.DcxImagePlugin.DcxImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the current frame number. See <a class="reference internal" href="Image.html#PIL.Image.Image.seek" title="PIL.Image.Image.seek"><code class="xref py py-meth docutils literal notranslate"><span class="pre">seek()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Frame number, starting with 0.</td> </tr> </tbody> </table> </dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.EpsImagePlugin"> <span id="epsimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">EpsImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.EpsImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.EpsImagePlugin.EpsImageFile"> <em class="property">class </em><code class="descclassname">PIL.EpsImagePlugin.</code><code class="descname">EpsImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#EpsImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.EpsImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <p>EPS File Parser for the Python Imaging Library</p> <dl class="attribute"> <dt id="PIL.EpsImagePlugin.EpsImageFile.format"> <code class="descname">format</code><em class="property"> = 'EPS'</em><a class="headerlink" href="#PIL.EpsImagePlugin.EpsImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.EpsImagePlugin.EpsImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Encapsulated Postscript'</em><a class="headerlink" href="#PIL.EpsImagePlugin.EpsImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.EpsImagePlugin.EpsImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><em>scale=1</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#EpsImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.EpsImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> <dl class="method"> <dt id="PIL.EpsImagePlugin.EpsImageFile.load_seek"> <code class="descname">load_seek</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#EpsImageFile.load_seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.EpsImageFile.load_seek" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.EpsImagePlugin.EpsImageFile.mode_map"> <code class="descname">mode_map</code><em class="property"> = {1: 'L', 2: 'LAB', 3: 'RGB', 4: 'CMYK'}</em><a class="headerlink" href="#PIL.EpsImagePlugin.EpsImageFile.mode_map" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.EpsImagePlugin.Ghostscript"> <code class="descclassname">PIL.EpsImagePlugin.</code><code class="descname">Ghostscript</code><span class="sig-paren">(</span><em>tile</em>, <em>size</em>, <em>fp</em>, <em>scale=1</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#Ghostscript"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.Ghostscript" title="Permalink to this definition">¶</a></dt> <dd><p>Render an image using Ghostscript</p> </dd></dl> <dl class="class"> <dt id="PIL.EpsImagePlugin.PSFile"> <em class="property">class </em><code class="descclassname">PIL.EpsImagePlugin.</code><code class="descname">PSFile</code><span class="sig-paren">(</span><em>fp</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#PSFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.PSFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <p>Wrapper for bytesio object that treats either CR or LF as end of line.</p> <dl class="method"> <dt id="PIL.EpsImagePlugin.PSFile.readline"> <code class="descname">readline</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#PSFile.readline"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.PSFile.readline" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.EpsImagePlugin.PSFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>offset</em>, <em>whence=0</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#PSFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.PSFile.seek" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.EpsImagePlugin.has_ghostscript"> <code class="descclassname">PIL.EpsImagePlugin.</code><code class="descname">has_ghostscript</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/EpsImagePlugin.html#has_ghostscript"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.EpsImagePlugin.has_ghostscript" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.FitsStubImagePlugin"> <span id="fitsstubimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">FitsStubImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.FitsStubImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.FitsStubImagePlugin.FITSStubImageFile"> <em class="property">class </em><code class="descclassname">PIL.FitsStubImagePlugin.</code><code class="descname">FITSStubImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/FitsStubImagePlugin.html#FITSStubImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.FitsStubImagePlugin.FITSStubImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.StubImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.FitsStubImagePlugin.FITSStubImageFile.format"> <code class="descname">format</code><em class="property"> = 'FITS'</em><a class="headerlink" href="#PIL.FitsStubImagePlugin.FITSStubImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.FitsStubImagePlugin.FITSStubImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'FITS'</em><a class="headerlink" href="#PIL.FitsStubImagePlugin.FITSStubImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.FitsStubImagePlugin.register_handler"> <code class="descclassname">PIL.FitsStubImagePlugin.</code><code class="descname">register_handler</code><span class="sig-paren">(</span><em>handler</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/FitsStubImagePlugin.html#register_handler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.FitsStubImagePlugin.register_handler" title="Permalink to this definition">¶</a></dt> <dd><p>Install application-specific FITS image handler.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>handler</strong> – Handler object.</td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-PIL.FliImagePlugin"> <span id="fliimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">FliImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.FliImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.FliImagePlugin.FliImageFile"> <em class="property">class </em><code class="descclassname">PIL.FliImagePlugin.</code><code class="descname">FliImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/FliImagePlugin.html#FliImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.FliImagePlugin.FliImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.FliImagePlugin.FliImageFile.format"> <code class="descname">format</code><em class="property"> = 'FLI'</em><a class="headerlink" href="#PIL.FliImagePlugin.FliImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.FliImagePlugin.FliImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Autodesk FLI/FLC Animation'</em><a class="headerlink" href="#PIL.FliImagePlugin.FliImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.FliImagePlugin.FliImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.FliImagePlugin.FliImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.FliImagePlugin.FliImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.FliImagePlugin.FliImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.FliImagePlugin.FliImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>frame</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/FliImagePlugin.html#FliImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.FliImagePlugin.FliImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Seeks to the given frame in this sequence file. If you seek beyond the end of the sequence, the method raises an <strong>EOFError</strong> exception. When a sequence file is opened, the library automatically seeks to frame 0.</p> <p>Note that in the current version of the library, most sequence formats only allows you to seek to the next frame.</p> <p>See <a class="reference internal" href="Image.html#PIL.Image.Image.tell" title="PIL.Image.Image.tell"><code class="xref py py-meth docutils literal notranslate"><span class="pre">tell()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>frame</strong> – Frame number, starting at 0.</td> </tr> <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><strong>EOFError</strong> – If the call attempts to seek beyond the end of the sequence.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.FliImagePlugin.FliImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/FliImagePlugin.html#FliImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.FliImagePlugin.FliImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the current frame number. See <a class="reference internal" href="Image.html#PIL.Image.Image.seek" title="PIL.Image.Image.seek"><code class="xref py py-meth docutils literal notranslate"><span class="pre">seek()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Frame number, starting with 0.</td> </tr> </tbody> </table> </dd></dl> </dd></dl> </div> <div class="section" id="fpximageplugin-module"> <h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">FpxImagePlugin</span></code> Module<a class="headerlink" href="#fpximageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.GbrImagePlugin"> <span id="gbrimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">GbrImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.GbrImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.GbrImagePlugin.GbrImageFile"> <em class="property">class </em><code class="descclassname">PIL.GbrImagePlugin.</code><code class="descname">GbrImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GbrImagePlugin.html#GbrImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GbrImagePlugin.GbrImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.GbrImagePlugin.GbrImageFile.format"> <code class="descname">format</code><em class="property"> = 'GBR'</em><a class="headerlink" href="#PIL.GbrImagePlugin.GbrImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GbrImagePlugin.GbrImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'GIMP brush file'</em><a class="headerlink" href="#PIL.GbrImagePlugin.GbrImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.GbrImagePlugin.GbrImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GbrImagePlugin.html#GbrImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GbrImagePlugin.GbrImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.GifImagePlugin"> <span id="gifimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">GifImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.GifImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.GifImagePlugin.GifImageFile"> <em class="property">class </em><code class="descclassname">PIL.GifImagePlugin.</code><code class="descname">GifImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#GifImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="method"> <dt id="PIL.GifImagePlugin.GifImageFile.data"> <code class="descname">data</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#GifImageFile.data"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.data" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GifImagePlugin.GifImageFile.format"> <code class="descname">format</code><em class="property"> = 'GIF'</em><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GifImagePlugin.GifImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Compuserve GIF'</em><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GifImagePlugin.GifImageFile.global_palette"> <code class="descname">global_palette</code><em class="property"> = None</em><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.global_palette" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GifImagePlugin.GifImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.GifImagePlugin.GifImageFile.load_end"> <code class="descname">load_end</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#GifImageFile.load_end"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.load_end" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GifImagePlugin.GifImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.GifImagePlugin.GifImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>frame</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#GifImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Seeks to the given frame in this sequence file. If you seek beyond the end of the sequence, the method raises an <strong>EOFError</strong> exception. When a sequence file is opened, the library automatically seeks to frame 0.</p> <p>Note that in the current version of the library, most sequence formats only allows you to seek to the next frame.</p> <p>See <a class="reference internal" href="Image.html#PIL.Image.Image.tell" title="PIL.Image.Image.tell"><code class="xref py py-meth docutils literal notranslate"><span class="pre">tell()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>frame</strong> – Frame number, starting at 0.</td> </tr> <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><strong>EOFError</strong> – If the call attempts to seek beyond the end of the sequence.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.GifImagePlugin.GifImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#GifImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.GifImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the current frame number. See <a class="reference internal" href="Image.html#PIL.Image.Image.seek" title="PIL.Image.Image.seek"><code class="xref py py-meth docutils literal notranslate"><span class="pre">seek()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Frame number, starting with 0.</td> </tr> </tbody> </table> </dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.GifImagePlugin.get_interlace"> <code class="descclassname">PIL.GifImagePlugin.</code><code class="descname">get_interlace</code><span class="sig-paren">(</span><em>im</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#get_interlace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.get_interlace" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.GifImagePlugin.getdata"> <code class="descclassname">PIL.GifImagePlugin.</code><code class="descname">getdata</code><span class="sig-paren">(</span><em>im</em>, <em>offset=(0</em>, <em>0)</em>, <em>**params</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#getdata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.getdata" title="Permalink to this definition">¶</a></dt> <dd><p>Legacy Method</p> <p>Return a list of strings representing this image. The first string is a local image header, the rest contains encoded image data.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>im</strong> – Image object</li> <li><strong>offset</strong> – Tuple of (x, y) pixels. Defaults to (0,0)</li> <li><strong>**params</strong> – E.g. duration or other encoder info parameters</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">List of Bytes containing gif encoded frame data</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="PIL.GifImagePlugin.getheader"> <code class="descclassname">PIL.GifImagePlugin.</code><code class="descname">getheader</code><span class="sig-paren">(</span><em>im</em>, <em>palette=None</em>, <em>info=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GifImagePlugin.html#getheader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GifImagePlugin.getheader" title="Permalink to this definition">¶</a></dt> <dd><p>Legacy Method to get Gif data from image.</p> <p>Warning:: May modify image data.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>im</strong> – Image object</li> <li><strong>palette</strong> – bytes object containing the source palette, or ….</li> <li><strong>info</strong> – encoderinfo</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">tuple of(list of header items, optimized palette)</p> </td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-PIL.GribStubImagePlugin"> <span id="gribstubimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">GribStubImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.GribStubImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.GribStubImagePlugin.GribStubImageFile"> <em class="property">class </em><code class="descclassname">PIL.GribStubImagePlugin.</code><code class="descname">GribStubImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GribStubImagePlugin.html#GribStubImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GribStubImagePlugin.GribStubImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.StubImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.GribStubImagePlugin.GribStubImageFile.format"> <code class="descname">format</code><em class="property"> = 'GRIB'</em><a class="headerlink" href="#PIL.GribStubImagePlugin.GribStubImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.GribStubImagePlugin.GribStubImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'GRIB'</em><a class="headerlink" href="#PIL.GribStubImagePlugin.GribStubImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.GribStubImagePlugin.register_handler"> <code class="descclassname">PIL.GribStubImagePlugin.</code><code class="descname">register_handler</code><span class="sig-paren">(</span><em>handler</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/GribStubImagePlugin.html#register_handler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.GribStubImagePlugin.register_handler" title="Permalink to this definition">¶</a></dt> <dd><p>Install application-specific GRIB image handler.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>handler</strong> – Handler object.</td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-PIL.Hdf5StubImagePlugin"> <span id="hdf5stubimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">Hdf5StubImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.Hdf5StubImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.Hdf5StubImagePlugin.HDF5StubImageFile"> <em class="property">class </em><code class="descclassname">PIL.Hdf5StubImagePlugin.</code><code class="descname">HDF5StubImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/Hdf5StubImagePlugin.html#HDF5StubImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.Hdf5StubImagePlugin.HDF5StubImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.StubImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.Hdf5StubImagePlugin.HDF5StubImageFile.format"> <code class="descname">format</code><em class="property"> = 'HDF5'</em><a class="headerlink" href="#PIL.Hdf5StubImagePlugin.HDF5StubImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.Hdf5StubImagePlugin.HDF5StubImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'HDF5'</em><a class="headerlink" href="#PIL.Hdf5StubImagePlugin.HDF5StubImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.Hdf5StubImagePlugin.register_handler"> <code class="descclassname">PIL.Hdf5StubImagePlugin.</code><code class="descname">register_handler</code><span class="sig-paren">(</span><em>handler</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/Hdf5StubImagePlugin.html#register_handler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.Hdf5StubImagePlugin.register_handler" title="Permalink to this definition">¶</a></dt> <dd><p>Install application-specific HDF5 image handler.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>handler</strong> – Handler object.</td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-PIL.IcnsImagePlugin"> <span id="icnsimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">IcnsImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.IcnsImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.IcnsImagePlugin.IcnsFile"> <em class="property">class </em><code class="descclassname">PIL.IcnsImagePlugin.</code><code class="descname">IcnsFile</code><span class="sig-paren">(</span><em>fobj</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#IcnsFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dl class="attribute"> <dt id="PIL.IcnsImagePlugin.IcnsFile.SIZES"> <code class="descname">SIZES</code><em class="property"> = {(16, 16, 1): [(b'icp4', <function read_png_or_jpeg2000>), (b'is32', <function read_32>), (b's8mk', <function read_mk>)], (16, 16, 2): [(b'ic11', <function read_png_or_jpeg2000>)], (32, 32, 1): [(b'icp5', <function read_png_or_jpeg2000>), (b'il32', <function read_32>), (b'l8mk', <function read_mk>)], (32, 32, 2): [(b'ic12', <function read_png_or_jpeg2000>)], (48, 48, 1): [(b'ih32', <function read_32>), (b'h8mk', <function read_mk>)], (64, 64, 1): [(b'icp6', <function read_png_or_jpeg2000>)], (128, 128, 1): [(b'ic07', <function read_png_or_jpeg2000>), (b'it32', <function read_32t>), (b't8mk', <function read_mk>)], (128, 128, 2): [(b'ic13', <function read_png_or_jpeg2000>)], (256, 256, 1): [(b'ic08', <function read_png_or_jpeg2000>)], (256, 256, 2): [(b'ic14', <function read_png_or_jpeg2000>)], (512, 512, 1): [(b'ic09', <function read_png_or_jpeg2000>)], (512, 512, 2): [(b'ic10', <function read_png_or_jpeg2000>)]}</em><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsFile.SIZES" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.IcnsImagePlugin.IcnsFile.bestsize"> <code class="descname">bestsize</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#IcnsFile.bestsize"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsFile.bestsize" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.IcnsImagePlugin.IcnsFile.dataforsize"> <code class="descname">dataforsize</code><span class="sig-paren">(</span><em>size</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#IcnsFile.dataforsize"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsFile.dataforsize" title="Permalink to this definition">¶</a></dt> <dd><p>Get an icon resource as {channel: array}. Note that the arrays are bottom-up like windows bitmaps and will likely need to be flipped or transposed in some way.</p> </dd></dl> <dl class="method"> <dt id="PIL.IcnsImagePlugin.IcnsFile.getimage"> <code class="descname">getimage</code><span class="sig-paren">(</span><em>size=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#IcnsFile.getimage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsFile.getimage" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.IcnsImagePlugin.IcnsFile.itersizes"> <code class="descname">itersizes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#IcnsFile.itersizes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsFile.itersizes" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.IcnsImagePlugin.IcnsImageFile"> <em class="property">class </em><code class="descclassname">PIL.IcnsImagePlugin.</code><code class="descname">IcnsImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#IcnsImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <p>PIL image support for Mac OS .icns files. Chooses the best resolution, but will possibly load a different size image if you mutate the size attribute before calling ‘load’.</p> <p>The info dictionary has a key ‘sizes’ that is a list of sizes that the icns file has.</p> <dl class="attribute"> <dt id="PIL.IcnsImagePlugin.IcnsImageFile.format"> <code class="descname">format</code><em class="property"> = 'ICNS'</em><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.IcnsImagePlugin.IcnsImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Mac OS icns resource'</em><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.IcnsImagePlugin.IcnsImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#IcnsImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> <dl class="attribute"> <dt id="PIL.IcnsImagePlugin.IcnsImageFile.size"> <code class="descname">size</code><a class="headerlink" href="#PIL.IcnsImagePlugin.IcnsImageFile.size" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.IcnsImagePlugin.nextheader"> <code class="descclassname">PIL.IcnsImagePlugin.</code><code class="descname">nextheader</code><span class="sig-paren">(</span><em>fobj</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#nextheader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.nextheader" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.IcnsImagePlugin.read_32"> <code class="descclassname">PIL.IcnsImagePlugin.</code><code class="descname">read_32</code><span class="sig-paren">(</span><em>fobj</em>, <em>start_length</em>, <em>size</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#read_32"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.read_32" title="Permalink to this definition">¶</a></dt> <dd><p>Read a 32bit RGB icon resource. Seems to be either uncompressed or an RLE packbits-like scheme.</p> </dd></dl> <dl class="function"> <dt id="PIL.IcnsImagePlugin.read_32t"> <code class="descclassname">PIL.IcnsImagePlugin.</code><code class="descname">read_32t</code><span class="sig-paren">(</span><em>fobj</em>, <em>start_length</em>, <em>size</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#read_32t"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.read_32t" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.IcnsImagePlugin.read_mk"> <code class="descclassname">PIL.IcnsImagePlugin.</code><code class="descname">read_mk</code><span class="sig-paren">(</span><em>fobj</em>, <em>start_length</em>, <em>size</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#read_mk"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.read_mk" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.IcnsImagePlugin.read_png_or_jpeg2000"> <code class="descclassname">PIL.IcnsImagePlugin.</code><code class="descname">read_png_or_jpeg2000</code><span class="sig-paren">(</span><em>fobj</em>, <em>start_length</em>, <em>size</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcnsImagePlugin.html#read_png_or_jpeg2000"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcnsImagePlugin.read_png_or_jpeg2000" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.IcoImagePlugin"> <span id="icoimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">IcoImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.IcoImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.IcoImagePlugin.IcoFile"> <em class="property">class </em><code class="descclassname">PIL.IcoImagePlugin.</code><code class="descname">IcoFile</code><span class="sig-paren">(</span><em>buf</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcoImagePlugin.html#IcoFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcoImagePlugin.IcoFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dl class="method"> <dt id="PIL.IcoImagePlugin.IcoFile.frame"> <code class="descname">frame</code><span class="sig-paren">(</span><em>idx</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcoImagePlugin.html#IcoFile.frame"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcoImagePlugin.IcoFile.frame" title="Permalink to this definition">¶</a></dt> <dd><p>Get an image from frame idx</p> </dd></dl> <dl class="method"> <dt id="PIL.IcoImagePlugin.IcoFile.getimage"> <code class="descname">getimage</code><span class="sig-paren">(</span><em>size</em>, <em>bpp=False</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcoImagePlugin.html#IcoFile.getimage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcoImagePlugin.IcoFile.getimage" title="Permalink to this definition">¶</a></dt> <dd><p>Get an image from the icon</p> </dd></dl> <dl class="method"> <dt id="PIL.IcoImagePlugin.IcoFile.sizes"> <code class="descname">sizes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcoImagePlugin.html#IcoFile.sizes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcoImagePlugin.IcoFile.sizes" title="Permalink to this definition">¶</a></dt> <dd><p>Get a list of all available icon sizes and color depths.</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.IcoImagePlugin.IcoImageFile"> <em class="property">class </em><code class="descclassname">PIL.IcoImagePlugin.</code><code class="descname">IcoImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcoImagePlugin.html#IcoImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcoImagePlugin.IcoImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <p>PIL read-only image support for Microsoft Windows .ico files.</p> <p>By default the largest resolution image in the file will be loaded. This can be changed by altering the ‘size’ attribute before calling ‘load’.</p> <p>The info dictionary has a key ‘sizes’ that is a list of the sizes available in the icon file.</p> <p>Handles classic, XP and Vista icon formats.</p> <p>This plugin is a refactored version of Win32IconImagePlugin by Bryan Davis <<a class="reference external" href="mailto:casadebender%40gmail.com">casadebender<span>@</span>gmail<span>.</span>com</a>>. <a class="reference external" href="https://code.google.com/archive/p/casadebender/wikis/Win32IconImagePlugin.wiki">https://code.google.com/archive/p/casadebender/wikis/Win32IconImagePlugin.wiki</a></p> <dl class="attribute"> <dt id="PIL.IcoImagePlugin.IcoImageFile.format"> <code class="descname">format</code><em class="property"> = 'ICO'</em><a class="headerlink" href="#PIL.IcoImagePlugin.IcoImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.IcoImagePlugin.IcoImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Windows Icon'</em><a class="headerlink" href="#PIL.IcoImagePlugin.IcoImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.IcoImagePlugin.IcoImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcoImagePlugin.html#IcoImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcoImagePlugin.IcoImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> <dl class="method"> <dt id="PIL.IcoImagePlugin.IcoImageFile.load_seek"> <code class="descname">load_seek</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IcoImagePlugin.html#IcoImageFile.load_seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IcoImagePlugin.IcoImageFile.load_seek" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.IcoImagePlugin.IcoImageFile.size"> <code class="descname">size</code><a class="headerlink" href="#PIL.IcoImagePlugin.IcoImageFile.size" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.ImImagePlugin"> <span id="imimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">ImImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.ImImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.ImImagePlugin.ImImageFile"> <em class="property">class </em><code class="descclassname">PIL.ImImagePlugin.</code><code class="descname">ImImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/ImImagePlugin.html#ImImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImImagePlugin.ImImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.ImImagePlugin.ImImageFile.format"> <code class="descname">format</code><em class="property"> = 'IM'</em><a class="headerlink" href="#PIL.ImImagePlugin.ImImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImImagePlugin.ImImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'IFUNC Image Memory'</em><a class="headerlink" href="#PIL.ImImagePlugin.ImImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImImagePlugin.ImImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.ImImagePlugin.ImImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImImagePlugin.ImImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.ImImagePlugin.ImImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.ImImagePlugin.ImImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>frame</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/ImImagePlugin.html#ImImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImImagePlugin.ImImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Seeks to the given frame in this sequence file. If you seek beyond the end of the sequence, the method raises an <strong>EOFError</strong> exception. When a sequence file is opened, the library automatically seeks to frame 0.</p> <p>Note that in the current version of the library, most sequence formats only allows you to seek to the next frame.</p> <p>See <a class="reference internal" href="Image.html#PIL.Image.Image.tell" title="PIL.Image.Image.tell"><code class="xref py py-meth docutils literal notranslate"><span class="pre">tell()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>frame</strong> – Frame number, starting at 0.</td> </tr> <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><strong>EOFError</strong> – If the call attempts to seek beyond the end of the sequence.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.ImImagePlugin.ImImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/ImImagePlugin.html#ImImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImImagePlugin.ImImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the current frame number. See <a class="reference internal" href="Image.html#PIL.Image.Image.seek" title="PIL.Image.Image.seek"><code class="xref py py-meth docutils literal notranslate"><span class="pre">seek()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Frame number, starting with 0.</td> </tr> </tbody> </table> </dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.ImImagePlugin.number"> <code class="descclassname">PIL.ImImagePlugin.</code><code class="descname">number</code><span class="sig-paren">(</span><em>s</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/ImImagePlugin.html#number"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImImagePlugin.number" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.ImtImagePlugin"> <span id="imtimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">ImtImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.ImtImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.ImtImagePlugin.ImtImageFile"> <em class="property">class </em><code class="descclassname">PIL.ImtImagePlugin.</code><code class="descname">ImtImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/ImtImagePlugin.html#ImtImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.ImtImagePlugin.ImtImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.ImtImagePlugin.ImtImageFile.format"> <code class="descname">format</code><em class="property"> = 'IMT'</em><a class="headerlink" href="#PIL.ImtImagePlugin.ImtImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.ImtImagePlugin.ImtImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'IM Tools'</em><a class="headerlink" href="#PIL.ImtImagePlugin.ImtImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.IptcImagePlugin"> <span id="iptcimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">IptcImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.IptcImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.IptcImagePlugin.IptcImageFile"> <em class="property">class </em><code class="descclassname">PIL.IptcImagePlugin.</code><code class="descname">IptcImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IptcImagePlugin.html#IptcImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IptcImagePlugin.IptcImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="method"> <dt id="PIL.IptcImagePlugin.IptcImageFile.field"> <code class="descname">field</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IptcImagePlugin.html#IptcImageFile.field"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IptcImagePlugin.IptcImageFile.field" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.IptcImagePlugin.IptcImageFile.format"> <code class="descname">format</code><em class="property"> = 'IPTC'</em><a class="headerlink" href="#PIL.IptcImagePlugin.IptcImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.IptcImagePlugin.IptcImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'IPTC/NAA'</em><a class="headerlink" href="#PIL.IptcImagePlugin.IptcImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.IptcImagePlugin.IptcImageFile.getint"> <code class="descname">getint</code><span class="sig-paren">(</span><em>key</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IptcImagePlugin.html#IptcImageFile.getint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IptcImagePlugin.IptcImageFile.getint" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.IptcImagePlugin.IptcImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IptcImagePlugin.html#IptcImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IptcImagePlugin.IptcImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.IptcImagePlugin.dump"> <code class="descclassname">PIL.IptcImagePlugin.</code><code class="descname">dump</code><span class="sig-paren">(</span><em>c</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IptcImagePlugin.html#dump"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IptcImagePlugin.dump" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.IptcImagePlugin.getiptcinfo"> <code class="descclassname">PIL.IptcImagePlugin.</code><code class="descname">getiptcinfo</code><span class="sig-paren">(</span><em>im</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IptcImagePlugin.html#getiptcinfo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IptcImagePlugin.getiptcinfo" title="Permalink to this definition">¶</a></dt> <dd><p>Get IPTC information from TIFF, JPEG, or IPTC file.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>im</strong> – An image containing IPTC data.</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">A dictionary containing IPTC information, or None if no IPTC information block was found.</td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="PIL.IptcImagePlugin.i"> <code class="descclassname">PIL.IptcImagePlugin.</code><code class="descname">i</code><span class="sig-paren">(</span><em>c</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/IptcImagePlugin.html#i"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.IptcImagePlugin.i" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.JpegImagePlugin"> <span id="jpegimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">JpegImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.JpegImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="function"> <dt id="PIL.JpegImagePlugin.APP"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">APP</code><span class="sig-paren">(</span><em>self</em>, <em>marker</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#APP"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.APP" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.JpegImagePlugin.COM"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">COM</code><span class="sig-paren">(</span><em>self</em>, <em>marker</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#COM"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.COM" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.JpegImagePlugin.DQT"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">DQT</code><span class="sig-paren">(</span><em>self</em>, <em>marker</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#DQT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.DQT" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="class"> <dt id="PIL.JpegImagePlugin.JpegImageFile"> <em class="property">class </em><code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">JpegImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#JpegImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.JpegImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="method"> <dt id="PIL.JpegImagePlugin.JpegImageFile.draft"> <code class="descname">draft</code><span class="sig-paren">(</span><em>mode</em>, <em>size</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#JpegImageFile.draft"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.JpegImageFile.draft" title="Permalink to this definition">¶</a></dt> <dd><p>Set draft mode</p> </dd></dl> <dl class="attribute"> <dt id="PIL.JpegImagePlugin.JpegImageFile.format"> <code class="descname">format</code><em class="property"> = 'JPEG'</em><a class="headerlink" href="#PIL.JpegImagePlugin.JpegImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.JpegImagePlugin.JpegImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'JPEG (ISO 10918)'</em><a class="headerlink" href="#PIL.JpegImagePlugin.JpegImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.JpegImagePlugin.JpegImageFile.load_djpeg"> <code class="descname">load_djpeg</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#JpegImageFile.load_djpeg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.JpegImageFile.load_djpeg" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.JpegImagePlugin.JpegImageFile.load_read"> <code class="descname">load_read</code><span class="sig-paren">(</span><em>read_bytes</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#JpegImageFile.load_read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.JpegImageFile.load_read" title="Permalink to this definition">¶</a></dt> <dd><p>internal: read more image data For premature EOF and LOAD_TRUNCATED_IMAGES adds EOI marker so libjpeg can finish decoding</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.JpegImagePlugin.SOF"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">SOF</code><span class="sig-paren">(</span><em>self</em>, <em>marker</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#SOF"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.SOF" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.JpegImagePlugin.Skip"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">Skip</code><span class="sig-paren">(</span><em>self</em>, <em>marker</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#Skip"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.Skip" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.JpegImagePlugin.convert_dict_qtables"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">convert_dict_qtables</code><span class="sig-paren">(</span><em>qtables</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#convert_dict_qtables"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.convert_dict_qtables" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.JpegImagePlugin.get_sampling"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">get_sampling</code><span class="sig-paren">(</span><em>im</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#get_sampling"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.get_sampling" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.JpegImagePlugin.jpeg_factory"> <code class="descclassname">PIL.JpegImagePlugin.</code><code class="descname">jpeg_factory</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/JpegImagePlugin.html#jpeg_factory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.JpegImagePlugin.jpeg_factory" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.Jpeg2KImagePlugin"> <span id="jpeg2kimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">Jpeg2KImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.Jpeg2KImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.Jpeg2KImagePlugin.Jpeg2KImageFile"> <em class="property">class </em><code class="descclassname">PIL.Jpeg2KImagePlugin.</code><code class="descname">Jpeg2KImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/Jpeg2KImagePlugin.html#Jpeg2KImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.Jpeg2KImagePlugin.Jpeg2KImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.Jpeg2KImagePlugin.Jpeg2KImageFile.format"> <code class="descname">format</code><em class="property"> = 'JPEG2000'</em><a class="headerlink" href="#PIL.Jpeg2KImagePlugin.Jpeg2KImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.Jpeg2KImagePlugin.Jpeg2KImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'JPEG 2000 (ISO 15444)'</em><a class="headerlink" href="#PIL.Jpeg2KImagePlugin.Jpeg2KImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.Jpeg2KImagePlugin.Jpeg2KImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/Jpeg2KImagePlugin.html#Jpeg2KImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.Jpeg2KImagePlugin.Jpeg2KImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.McIdasImagePlugin"> <span id="mcidasimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">McIdasImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.McIdasImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.McIdasImagePlugin.McIdasImageFile"> <em class="property">class </em><code class="descclassname">PIL.McIdasImagePlugin.</code><code class="descname">McIdasImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/McIdasImagePlugin.html#McIdasImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.McIdasImagePlugin.McIdasImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.McIdasImagePlugin.McIdasImageFile.format"> <code class="descname">format</code><em class="property"> = 'MCIDAS'</em><a class="headerlink" href="#PIL.McIdasImagePlugin.McIdasImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.McIdasImagePlugin.McIdasImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'McIdas area file'</em><a class="headerlink" href="#PIL.McIdasImagePlugin.McIdasImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="micimageplugin-module"> <h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">MicImagePlugin</span></code> Module<a class="headerlink" href="#micimageplugin-module" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.MpegImagePlugin"> <span id="mpegimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">MpegImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.MpegImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.MpegImagePlugin.BitStream"> <em class="property">class </em><code class="descclassname">PIL.MpegImagePlugin.</code><code class="descname">BitStream</code><span class="sig-paren">(</span><em>fp</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MpegImagePlugin.html#BitStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MpegImagePlugin.BitStream" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dl class="method"> <dt id="PIL.MpegImagePlugin.BitStream.next"> <code class="descname">next</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MpegImagePlugin.html#BitStream.next"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MpegImagePlugin.BitStream.next" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.MpegImagePlugin.BitStream.peek"> <code class="descname">peek</code><span class="sig-paren">(</span><em>bits</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MpegImagePlugin.html#BitStream.peek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MpegImagePlugin.BitStream.peek" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.MpegImagePlugin.BitStream.read"> <code class="descname">read</code><span class="sig-paren">(</span><em>bits</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MpegImagePlugin.html#BitStream.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MpegImagePlugin.BitStream.read" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.MpegImagePlugin.BitStream.skip"> <code class="descname">skip</code><span class="sig-paren">(</span><em>bits</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MpegImagePlugin.html#BitStream.skip"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MpegImagePlugin.BitStream.skip" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.MpegImagePlugin.MpegImageFile"> <em class="property">class </em><code class="descclassname">PIL.MpegImagePlugin.</code><code class="descname">MpegImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MpegImagePlugin.html#MpegImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MpegImagePlugin.MpegImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.MpegImagePlugin.MpegImageFile.format"> <code class="descname">format</code><em class="property"> = 'MPEG'</em><a class="headerlink" href="#PIL.MpegImagePlugin.MpegImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.MpegImagePlugin.MpegImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'MPEG'</em><a class="headerlink" href="#PIL.MpegImagePlugin.MpegImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.MspImagePlugin"> <span id="mspimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">MspImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.MspImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.MspImagePlugin.MspDecoder"> <em class="property">class </em><code class="descclassname">PIL.MspImagePlugin.</code><code class="descname">MspDecoder</code><span class="sig-paren">(</span><em>mode</em>, <em>*args</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MspImagePlugin.html#MspDecoder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MspImagePlugin.MspDecoder" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="ImageFile.html#PIL.ImageFile.PyDecoder" title="PIL.ImageFile.PyDecoder"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.PyDecoder</span></code></a></p> <dl class="method"> <dt id="PIL.MspImagePlugin.MspDecoder.decode"> <code class="descname">decode</code><span class="sig-paren">(</span><em>buffer</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MspImagePlugin.html#MspDecoder.decode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MspImagePlugin.MspDecoder.decode" title="Permalink to this definition">¶</a></dt> <dd><p>Override to perform the decoding process.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>buffer</strong> – A bytes object with the data to be decoded. If <cite>handles_eof</cite> is set, then <cite>buffer</cite> will be empty and <cite>self.fd</cite> will be set.</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">A tuple of (bytes consumed, errcode). If finished with decoding return <0 for the bytes consumed. Err codes are from <cite>ERRORS</cite></td> </tr> </tbody> </table> </dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.MspImagePlugin.MspImageFile"> <em class="property">class </em><code class="descclassname">PIL.MspImagePlugin.</code><code class="descname">MspImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/MspImagePlugin.html#MspImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.MspImagePlugin.MspImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.MspImagePlugin.MspImageFile.format"> <code class="descname">format</code><em class="property"> = 'MSP'</em><a class="headerlink" href="#PIL.MspImagePlugin.MspImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.MspImagePlugin.MspImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Windows Paint'</em><a class="headerlink" href="#PIL.MspImagePlugin.MspImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.PalmImagePlugin"> <span id="palmimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PalmImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PalmImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="function"> <dt id="PIL.PalmImagePlugin.build_prototype_image"> <code class="descclassname">PIL.PalmImagePlugin.</code><code class="descname">build_prototype_image</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PalmImagePlugin.html#build_prototype_image"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PalmImagePlugin.build_prototype_image" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.PcdImagePlugin"> <span id="pcdimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PcdImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PcdImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.PcdImagePlugin.PcdImageFile"> <em class="property">class </em><code class="descclassname">PIL.PcdImagePlugin.</code><code class="descname">PcdImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PcdImagePlugin.html#PcdImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PcdImagePlugin.PcdImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.PcdImagePlugin.PcdImageFile.format"> <code class="descname">format</code><em class="property"> = 'PCD'</em><a class="headerlink" href="#PIL.PcdImagePlugin.PcdImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PcdImagePlugin.PcdImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Kodak PhotoCD'</em><a class="headerlink" href="#PIL.PcdImagePlugin.PcdImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PcdImagePlugin.PcdImageFile.load_end"> <code class="descname">load_end</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PcdImagePlugin.html#PcdImageFile.load_end"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PcdImagePlugin.PcdImageFile.load_end" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.PcxImagePlugin"> <span id="pcximageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PcxImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PcxImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.PcxImagePlugin.PcxImageFile"> <em class="property">class </em><code class="descclassname">PIL.PcxImagePlugin.</code><code class="descname">PcxImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PcxImagePlugin.html#PcxImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PcxImagePlugin.PcxImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.PcxImagePlugin.PcxImageFile.format"> <code class="descname">format</code><em class="property"> = 'PCX'</em><a class="headerlink" href="#PIL.PcxImagePlugin.PcxImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PcxImagePlugin.PcxImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Paintbrush'</em><a class="headerlink" href="#PIL.PcxImagePlugin.PcxImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.PdfImagePlugin"> <span id="pdfimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PdfImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PdfImagePlugin" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-PIL.PixarImagePlugin"> <span id="pixarimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PixarImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PixarImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.PixarImagePlugin.PixarImageFile"> <em class="property">class </em><code class="descclassname">PIL.PixarImagePlugin.</code><code class="descname">PixarImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PixarImagePlugin.html#PixarImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PixarImagePlugin.PixarImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.PixarImagePlugin.PixarImageFile.format"> <code class="descname">format</code><em class="property"> = 'PIXAR'</em><a class="headerlink" href="#PIL.PixarImagePlugin.PixarImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PixarImagePlugin.PixarImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'PIXAR raster image'</em><a class="headerlink" href="#PIL.PixarImagePlugin.PixarImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.PngImagePlugin"> <span id="pngimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PngImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PngImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.PngImagePlugin.PngImageFile"> <em class="property">class </em><code class="descclassname">PIL.PngImagePlugin.</code><code class="descname">PngImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="method"> <dt id="PIL.PngImagePlugin.PngImageFile.load_end"> <code class="descname">load_end</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.load_end"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile.load_end" title="Permalink to this definition">¶</a></dt> <dd><p>internal: finished reading image data</p> </dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngImageFile.load_prepare"> <code class="descname">load_prepare</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.load_prepare"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile.load_prepare" title="Permalink to this definition">¶</a></dt> <dd><p>internal: prepare to read PNG file</p> </dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngImageFile.load_read"> <code class="descname">load_read</code><span class="sig-paren">(</span><em>read_bytes</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.load_read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile.load_read" title="Permalink to this definition">¶</a></dt> <dd><p>internal: read more image data</p> </dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngImageFile.verify"> <code class="descname">verify</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile.verify" title="Permalink to this definition">¶</a></dt> <dd><p>Verify PNG file</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.PngImagePlugin.getchunks"> <code class="descclassname">PIL.PngImagePlugin.</code><code class="descname">getchunks</code><span class="sig-paren">(</span><em>im</em>, <em>**params</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#getchunks"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.getchunks" title="Permalink to this definition">¶</a></dt> <dd><p>Return a list of PNG chunks representing this image.</p> </dd></dl> <dl class="function"> <dt id="PIL.PngImagePlugin.is_cid"> <code class="descclassname">PIL.PngImagePlugin.</code><code class="descname">is_cid</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PIL.PngImagePlugin.is_cid" title="Permalink to this definition">¶</a></dt> <dd><p>Matches zero or more characters at the beginning of the string.</p> </dd></dl> <dl class="function"> <dt id="PIL.PngImagePlugin.putchunk"> <code class="descclassname">PIL.PngImagePlugin.</code><code class="descname">putchunk</code><span class="sig-paren">(</span><em>fp</em>, <em>cid</em>, <em>*data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#putchunk"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.putchunk" title="Permalink to this definition">¶</a></dt> <dd><p>Write a PNG chunk (including CRC field)</p> </dd></dl> <dl class="class"> <dt id="PIL.PngImagePlugin.ChunkStream"> <em class="property">class </em><code class="descclassname">PIL.PngImagePlugin.</code><code class="descname">ChunkStream</code><span class="sig-paren">(</span><em>fp</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dl class="method"> <dt id="PIL.PngImagePlugin.ChunkStream.call"> <code class="descname">call</code><span class="sig-paren">(</span><em>cid</em>, <em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream.call"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream.call" title="Permalink to this definition">¶</a></dt> <dd><p>Call the appropriate chunk handler</p> </dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.ChunkStream.close"> <code class="descname">close</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream.close" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.ChunkStream.crc"> <code class="descname">crc</code><span class="sig-paren">(</span><em>cid</em>, <em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream.crc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream.crc" title="Permalink to this definition">¶</a></dt> <dd><p>Read and verify checksum</p> </dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.ChunkStream.crc_skip"> <code class="descname">crc_skip</code><span class="sig-paren">(</span><em>cid</em>, <em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream.crc_skip"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream.crc_skip" title="Permalink to this definition">¶</a></dt> <dd><p>Read checksum. Used if the C module is not present</p> </dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.ChunkStream.push"> <code class="descname">push</code><span class="sig-paren">(</span><em>cid</em>, <em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream.push"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream.push" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.ChunkStream.read"> <code class="descname">read</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream.read" title="Permalink to this definition">¶</a></dt> <dd><p>Fetch a new chunk. Returns header information.</p> </dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.ChunkStream.verify"> <code class="descname">verify</code><span class="sig-paren">(</span><em>endchunk=b'IEND'</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#ChunkStream.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.ChunkStream.verify" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt> <em class="property">class </em><code class="descclassname">PIL.PngImagePlugin.</code><code class="descname">PngImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile"><span class="viewcode-link">[source]</span></a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.PngImagePlugin.PngImageFile.format"> <code class="descname">format</code><em class="property"> = 'PNG'</em><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PngImagePlugin.PngImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Portable network graphics'</em><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt> <code class="descname">load_end</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.load_end"><span class="viewcode-link">[source]</span></a></dt> <dd><p>internal: finished reading image data</p> </dd></dl> <dl class="method"> <dt> <code class="descname">load_prepare</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.load_prepare"><span class="viewcode-link">[source]</span></a></dt> <dd><p>internal: prepare to read PNG file</p> </dd></dl> <dl class="method"> <dt> <code class="descname">load_read</code><span class="sig-paren">(</span><em>read_bytes</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.load_read"><span class="viewcode-link">[source]</span></a></dt> <dd><p>internal: read more image data</p> </dd></dl> <dl class="attribute"> <dt id="PIL.PngImagePlugin.PngImageFile.text"> <code class="descname">text</code><a class="headerlink" href="#PIL.PngImagePlugin.PngImageFile.text" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt> <code class="descname">verify</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngImageFile.verify"><span class="viewcode-link">[source]</span></a></dt> <dd><p>Verify PNG file</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.PngImagePlugin.PngStream"> <em class="property">class </em><code class="descclassname">PIL.PngImagePlugin.</code><code class="descname">PngStream</code><span class="sig-paren">(</span><em>fp</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.PngImagePlugin.ChunkStream" title="PIL.PngImagePlugin.ChunkStream"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.PngImagePlugin.ChunkStream</span></code></a></p> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.check_text_memory"> <code class="descname">check_text_memory</code><span class="sig-paren">(</span><em>chunklen</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.check_text_memory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.check_text_memory" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_IDAT"> <code class="descname">chunk_IDAT</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_IDAT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_IDAT" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_IEND"> <code class="descname">chunk_IEND</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_IEND"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_IEND" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_IHDR"> <code class="descname">chunk_IHDR</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_IHDR"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_IHDR" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_PLTE"> <code class="descname">chunk_PLTE</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_PLTE"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_PLTE" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_acTL"> <code class="descname">chunk_acTL</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_acTL"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_acTL" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_cHRM"> <code class="descname">chunk_cHRM</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_cHRM"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_cHRM" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_fcTL"> <code class="descname">chunk_fcTL</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_fcTL"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_fcTL" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_fdAT"> <code class="descname">chunk_fdAT</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_fdAT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_fdAT" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_gAMA"> <code class="descname">chunk_gAMA</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_gAMA"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_gAMA" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_iCCP"> <code class="descname">chunk_iCCP</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_iCCP"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_iCCP" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_iTXt"> <code class="descname">chunk_iTXt</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_iTXt"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_iTXt" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_pHYs"> <code class="descname">chunk_pHYs</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_pHYs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_pHYs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_sRGB"> <code class="descname">chunk_sRGB</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_sRGB"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_sRGB" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_tEXt"> <code class="descname">chunk_tEXt</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_tEXt"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_tEXt" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_tRNS"> <code class="descname">chunk_tRNS</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_tRNS"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_tRNS" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PngImagePlugin.PngStream.chunk_zTXt"> <code class="descname">chunk_zTXt</code><span class="sig-paren">(</span><em>pos</em>, <em>length</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PngImagePlugin.html#PngStream.chunk_zTXt"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PngImagePlugin.PngStream.chunk_zTXt" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.PpmImagePlugin"> <span id="ppmimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PpmImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PpmImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.PpmImagePlugin.PpmImageFile"> <em class="property">class </em><code class="descclassname">PIL.PpmImagePlugin.</code><code class="descname">PpmImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PpmImagePlugin.html#PpmImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PpmImagePlugin.PpmImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.PpmImagePlugin.PpmImageFile.format"> <code class="descname">format</code><em class="property"> = 'PPM'</em><a class="headerlink" href="#PIL.PpmImagePlugin.PpmImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PpmImagePlugin.PpmImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Pbmplus image'</em><a class="headerlink" href="#PIL.PpmImagePlugin.PpmImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.PsdImagePlugin"> <span id="psdimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">PsdImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.PsdImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.PsdImagePlugin.PsdImageFile"> <em class="property">class </em><code class="descclassname">PIL.PsdImagePlugin.</code><code class="descname">PsdImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PsdImagePlugin.html#PsdImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.PsdImagePlugin.PsdImageFile.format"> <code class="descname">format</code><em class="property"> = 'PSD'</em><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PsdImagePlugin.PsdImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Adobe Photoshop'</em><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PsdImagePlugin.PsdImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PsdImagePlugin.PsdImageFile.load_prepare"> <code class="descname">load_prepare</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PsdImagePlugin.html#PsdImageFile.load_prepare"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile.load_prepare" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.PsdImagePlugin.PsdImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.PsdImagePlugin.PsdImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>layer</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PsdImagePlugin.html#PsdImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Seeks to the given frame in this sequence file. If you seek beyond the end of the sequence, the method raises an <strong>EOFError</strong> exception. When a sequence file is opened, the library automatically seeks to frame 0.</p> <p>Note that in the current version of the library, most sequence formats only allows you to seek to the next frame.</p> <p>See <a class="reference internal" href="Image.html#PIL.Image.Image.tell" title="PIL.Image.Image.tell"><code class="xref py py-meth docutils literal notranslate"><span class="pre">tell()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>frame</strong> – Frame number, starting at 0.</td> </tr> <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><strong>EOFError</strong> – If the call attempts to seek beyond the end of the sequence.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.PsdImagePlugin.PsdImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/PsdImagePlugin.html#PsdImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.PsdImagePlugin.PsdImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the current frame number. See <a class="reference internal" href="Image.html#PIL.Image.Image.seek" title="PIL.Image.Image.seek"><code class="xref py py-meth docutils literal notranslate"><span class="pre">seek()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Frame number, starting with 0.</td> </tr> </tbody> </table> </dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.SgiImagePlugin"> <span id="sgiimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">SgiImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.SgiImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.SgiImagePlugin.SGI16Decoder"> <em class="property">class </em><code class="descclassname">PIL.SgiImagePlugin.</code><code class="descname">SGI16Decoder</code><span class="sig-paren">(</span><em>mode</em>, <em>*args</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SgiImagePlugin.html#SGI16Decoder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SgiImagePlugin.SGI16Decoder" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="ImageFile.html#PIL.ImageFile.PyDecoder" title="PIL.ImageFile.PyDecoder"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.PyDecoder</span></code></a></p> <dl class="method"> <dt id="PIL.SgiImagePlugin.SGI16Decoder.decode"> <code class="descname">decode</code><span class="sig-paren">(</span><em>buffer</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SgiImagePlugin.html#SGI16Decoder.decode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SgiImagePlugin.SGI16Decoder.decode" title="Permalink to this definition">¶</a></dt> <dd><p>Override to perform the decoding process.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>buffer</strong> – A bytes object with the data to be decoded. If <cite>handles_eof</cite> is set, then <cite>buffer</cite> will be empty and <cite>self.fd</cite> will be set.</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">A tuple of (bytes consumed, errcode). If finished with decoding return <0 for the bytes consumed. Err codes are from <cite>ERRORS</cite></td> </tr> </tbody> </table> </dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.SgiImagePlugin.SgiImageFile"> <em class="property">class </em><code class="descclassname">PIL.SgiImagePlugin.</code><code class="descname">SgiImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SgiImagePlugin.html#SgiImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SgiImagePlugin.SgiImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.SgiImagePlugin.SgiImageFile.format"> <code class="descname">format</code><em class="property"> = 'SGI'</em><a class="headerlink" href="#PIL.SgiImagePlugin.SgiImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.SgiImagePlugin.SgiImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'SGI Image File Format'</em><a class="headerlink" href="#PIL.SgiImagePlugin.SgiImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.SpiderImagePlugin"> <span id="spiderimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">SpiderImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.SpiderImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile"> <em class="property">class </em><code class="descclassname">PIL.SpiderImagePlugin.</code><code class="descname">SpiderImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#SpiderImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="method"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.convert2byte"> <code class="descname">convert2byte</code><span class="sig-paren">(</span><em>depth=255</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#SpiderImageFile.convert2byte"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.convert2byte" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.format"> <code class="descname">format</code><em class="property"> = 'SPIDER'</em><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Spider 2D image'</em><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>frame</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#SpiderImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Seeks to the given frame in this sequence file. If you seek beyond the end of the sequence, the method raises an <strong>EOFError</strong> exception. When a sequence file is opened, the library automatically seeks to frame 0.</p> <p>Note that in the current version of the library, most sequence formats only allows you to seek to the next frame.</p> <p>See <a class="reference internal" href="Image.html#PIL.Image.Image.tell" title="PIL.Image.Image.tell"><code class="xref py py-meth docutils literal notranslate"><span class="pre">tell()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>frame</strong> – Frame number, starting at 0.</td> </tr> <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><strong>EOFError</strong> – If the call attempts to seek beyond the end of the sequence.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#SpiderImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the current frame number. See <a class="reference internal" href="Image.html#PIL.Image.Image.seek" title="PIL.Image.Image.seek"><code class="xref py py-meth docutils literal notranslate"><span class="pre">seek()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Frame number, starting with 0.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.SpiderImagePlugin.SpiderImageFile.tkPhotoImage"> <code class="descname">tkPhotoImage</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#SpiderImageFile.tkPhotoImage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.SpiderImageFile.tkPhotoImage" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.SpiderImagePlugin.isInt"> <code class="descclassname">PIL.SpiderImagePlugin.</code><code class="descname">isInt</code><span class="sig-paren">(</span><em>f</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#isInt"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.isInt" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.SpiderImagePlugin.isSpiderHeader"> <code class="descclassname">PIL.SpiderImagePlugin.</code><code class="descname">isSpiderHeader</code><span class="sig-paren">(</span><em>t</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#isSpiderHeader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.isSpiderHeader" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.SpiderImagePlugin.isSpiderImage"> <code class="descclassname">PIL.SpiderImagePlugin.</code><code class="descname">isSpiderImage</code><span class="sig-paren">(</span><em>filename</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#isSpiderImage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.isSpiderImage" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="PIL.SpiderImagePlugin.loadImageSeries"> <code class="descclassname">PIL.SpiderImagePlugin.</code><code class="descname">loadImageSeries</code><span class="sig-paren">(</span><em>filelist=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#loadImageSeries"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.loadImageSeries" title="Permalink to this definition">¶</a></dt> <dd><p>create a list of Image.images for use in montage</p> </dd></dl> <dl class="function"> <dt id="PIL.SpiderImagePlugin.makeSpiderHeader"> <code class="descclassname">PIL.SpiderImagePlugin.</code><code class="descname">makeSpiderHeader</code><span class="sig-paren">(</span><em>im</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SpiderImagePlugin.html#makeSpiderHeader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SpiderImagePlugin.makeSpiderHeader" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-PIL.SunImagePlugin"> <span id="sunimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">SunImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.SunImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.SunImagePlugin.SunImageFile"> <em class="property">class </em><code class="descclassname">PIL.SunImagePlugin.</code><code class="descname">SunImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/SunImagePlugin.html#SunImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.SunImagePlugin.SunImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.SunImagePlugin.SunImageFile.format"> <code class="descname">format</code><em class="property"> = 'SUN'</em><a class="headerlink" href="#PIL.SunImagePlugin.SunImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.SunImagePlugin.SunImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Sun Raster File'</em><a class="headerlink" href="#PIL.SunImagePlugin.SunImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.TgaImagePlugin"> <span id="tgaimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">TgaImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.TgaImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.TgaImagePlugin.TgaImageFile"> <em class="property">class </em><code class="descclassname">PIL.TgaImagePlugin.</code><code class="descname">TgaImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TgaImagePlugin.html#TgaImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TgaImagePlugin.TgaImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.TgaImagePlugin.TgaImageFile.format"> <code class="descname">format</code><em class="property"> = 'TGA'</em><a class="headerlink" href="#PIL.TgaImagePlugin.TgaImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.TgaImagePlugin.TgaImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Targa'</em><a class="headerlink" href="#PIL.TgaImagePlugin.TgaImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.TiffImagePlugin"> <span id="tiffimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">TiffImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.TiffImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter"> <em class="property">class </em><code class="descclassname">PIL.TiffImagePlugin.</code><code class="descname">AppendingTiffWriter</code><span class="sig-paren">(</span><em>fn</em>, <em>new=False</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.Tags"> <code class="descname">Tags</code><em class="property"> = {273, 288, 324, 519, 520, 521}</em><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.Tags" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.close"> <code class="descname">close</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.close" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.fieldSizes"> <code class="descname">fieldSizes</code><em class="property"> = [0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8]</em><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.fieldSizes" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.finalize"> <code class="descname">finalize</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.finalize"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.finalize" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.fixIFD"> <code class="descname">fixIFD</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.fixIFD"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.fixIFD" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.fixOffsets"> <code class="descname">fixOffsets</code><span class="sig-paren">(</span><em>count</em>, <em>isShort=False</em>, <em>isLong=False</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.fixOffsets"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.fixOffsets" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.goToEnd"> <code class="descname">goToEnd</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.goToEnd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.goToEnd" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.newFrame"> <code class="descname">newFrame</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.newFrame"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.newFrame" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.readLong"> <code class="descname">readLong</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.readLong"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.readLong" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.readShort"> <code class="descname">readShort</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.readShort"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.readShort" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.rewriteLastLong"> <code class="descname">rewriteLastLong</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.rewriteLastLong"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.rewriteLastLong" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.rewriteLastShort"> <code class="descname">rewriteLastShort</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.rewriteLastShort"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.rewriteLastShort" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.rewriteLastShortToLong"> <code class="descname">rewriteLastShortToLong</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.rewriteLastShortToLong"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.rewriteLastShortToLong" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>offset</em>, <em>whence</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.seek" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.setEndian"> <code class="descname">setEndian</code><span class="sig-paren">(</span><em>endian</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.setEndian"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.setEndian" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.setup"> <code class="descname">setup</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.setup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.setup" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.skipIFDs"> <code class="descname">skipIFDs</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.skipIFDs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.skipIFDs" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.tell" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.write"> <code class="descname">write</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.write" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.writeLong"> <code class="descname">writeLong</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.writeLong"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.writeLong" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.AppendingTiffWriter.writeShort"> <code class="descname">writeShort</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#AppendingTiffWriter.writeShort"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.AppendingTiffWriter.writeShort" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.TiffImagePlugin.IFDRational"> <em class="property">class </em><code class="descclassname">PIL.TiffImagePlugin.</code><code class="descname">IFDRational</code><span class="sig-paren">(</span><em>value</em>, <em>denominator=1</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#IFDRational"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.IFDRational" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">numbers.Rational</span></code></p> <p>Implements a rational class where 0/0 is a legal value to match the in the wild use of exif rationals.</p> <p>e.g., DigitalZoomRatio - 0.00/0.00 indicates that no digital zoom was used</p> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.IFDRational.denominator"> <code class="descname">denominator</code><a class="headerlink" href="#PIL.TiffImagePlugin.IFDRational.denominator" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.IFDRational.limit_rational"> <code class="descname">limit_rational</code><span class="sig-paren">(</span><em>max_denominator</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#IFDRational.limit_rational"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.IFDRational.limit_rational" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>max_denominator</strong> – Integer, the maximum denominator value</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Tuple of (numerator, denominator)</td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.IFDRational.numerator"> <code class="descname">numerator</code><a class="headerlink" href="#PIL.TiffImagePlugin.IFDRational.numerator" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory"> <code class="descclassname">PIL.TiffImagePlugin.</code><code class="descname">ImageFileDirectory</code><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory" title="Permalink to this definition">¶</a></dt> <dd><p>alias of <a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1" title="PIL.TiffImagePlugin.ImageFileDirectory_v1"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.TiffImagePlugin.ImageFileDirectory_v1</span></code></a></p> </dd></dl> <dl class="class"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v1"> <em class="property">class </em><code class="descclassname">PIL.TiffImagePlugin.</code><code class="descname">ImageFileDirectory_v1</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v1"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2" title="PIL.TiffImagePlugin.ImageFileDirectory_v2"><code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.TiffImagePlugin.ImageFileDirectory_v2</span></code></a></p> <p>This class represents the <strong>legacy</strong> interface to a TIFF tag directory.</p> <p>Exposes a dictionary interface of the tags in the directory:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">ifd</span> <span class="o">=</span> <span class="n">ImageFileDirectory_v1</span><span class="p">()</span> <span class="n">ifd</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Some Data'</span> <span class="n">ifd</span><span class="o">.</span><span class="n">tagtype</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="mi">2</span> <span class="nb">print</span><span class="p">(</span><span class="n">ifd</span><span class="p">[</span><span class="n">key</span><span class="p">])</span> <span class="p">(</span><span class="s1">'Some Data'</span><span class="p">,)</span> </pre></div> </div> <p>Also contains a dictionary of tag types as read from the tiff image file, <cite>~PIL.TiffImagePlugin.ImageFileDirectory_v1.tagtype</cite>.</p> <p>Values are returned as a tuple.</p> <div class="deprecated"> <p><span class="versionmodified">Deprecated since version 3.0.0.</span></p> </div> <dl class="classmethod"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v1.from_v2"> <em class="property">classmethod </em><code class="descname">from_v2</code><span class="sig-paren">(</span><em>original</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v1.from_v2"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1.from_v2" title="Permalink to this definition">¶</a></dt> <dd><p>Returns an <a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1" title="PIL.TiffImagePlugin.ImageFileDirectory_v1"><code class="xref py py-class docutils literal notranslate"><span class="pre">ImageFileDirectory_v1</span></code></a> instance with the same data as is contained in the original <a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2" title="PIL.TiffImagePlugin.ImageFileDirectory_v2"><code class="xref py py-class docutils literal notranslate"><span class="pre">ImageFileDirectory_v2</span></code></a> instance.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1" title="PIL.TiffImagePlugin.ImageFileDirectory_v1"><code class="xref py py-class docutils literal notranslate"><span class="pre">ImageFileDirectory_v1</span></code></a></td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v1.tagdata"> <code class="descname">tagdata</code><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1.tagdata" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v1.tags"> <code class="descname">tags</code><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1.tags" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v1.to_v2"> <code class="descname">to_v2</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v1.to_v2"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1.to_v2" title="Permalink to this definition">¶</a></dt> <dd><p>Returns an <a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2" title="PIL.TiffImagePlugin.ImageFileDirectory_v2"><code class="xref py py-class docutils literal notranslate"><span class="pre">ImageFileDirectory_v2</span></code></a> instance with the same data as is contained in the original <a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v1" title="PIL.TiffImagePlugin.ImageFileDirectory_v1"><code class="xref py py-class docutils literal notranslate"><span class="pre">ImageFileDirectory_v1</span></code></a> instance.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><a class="reference internal" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2" title="PIL.TiffImagePlugin.ImageFileDirectory_v2"><code class="xref py py-class docutils literal notranslate"><span class="pre">ImageFileDirectory_v2</span></code></a></td> </tr> </tbody> </table> </dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2"> <em class="property">class </em><code class="descclassname">PIL.TiffImagePlugin.</code><code class="descname">ImageFileDirectory_v2</code><span class="sig-paren">(</span><em>ifh=b'II*x00x00x00x00x00'</em>, <em>prefix=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">collections.abc.MutableMapping</span></code></p> <p>This class represents a TIFF tag directory. To speed things up, we don’t decode tags unless they’re asked for.</p> <p>Exposes a dictionary interface of the tags in the directory:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">ifd</span> <span class="o">=</span> <span class="n">ImageFileDirectory_v2</span><span class="p">()</span> <span class="n">ifd</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Some Data'</span> <span class="n">ifd</span><span class="o">.</span><span class="n">tagtype</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="mi">2</span> <span class="nb">print</span><span class="p">(</span><span class="n">ifd</span><span class="p">[</span><span class="n">key</span><span class="p">])</span> <span class="s1">'Some Data'</span> </pre></div> </div> <p>Individual values are returned as the strings or numbers, sequences are returned as tuples of the values.</p> <p>The tiff metadata type of each item is stored in a dictionary of tag types in <cite>~PIL.TiffImagePlugin.ImageFileDirectory_v2.tagtype</cite>. The types are read from a tiff file, guessed from the type added, or added manually.</p> <p>Data Structures:</p> <blockquote> <div><ul class="simple"> <li>self.tagtype = {}<ul> <li>Key: numerical tiff tag number</li> <li><dl class="first docutils"> <dt>Value: integer corresponding to the data type from</dt> <dd>~PIL.TiffTags.TYPES`</dd> </dl> </li> </ul> </li> </ul> </div></blockquote> <div class="versionadded"> <p><span class="versionmodified">New in version 3.0.0.</span></p> </div> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.legacy_api"> <code class="descname">legacy_api</code><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.legacy_api" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load"> <code class="descname">load</code><span class="sig-paren">(</span><em>fp</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_byte"> <code class="descname">load_byte</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.load_byte"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_byte" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_double"> <code class="descname">load_double</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_double" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_float"> <code class="descname">load_float</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_float" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_long"> <code class="descname">load_long</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_long" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_rational"> <code class="descname">load_rational</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.load_rational"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_rational" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_short"> <code class="descname">load_short</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_short" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_byte"> <code class="descname">load_signed_byte</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_byte" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_long"> <code class="descname">load_signed_long</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_long" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_rational"> <code class="descname">load_signed_rational</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.load_signed_rational"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_rational" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_short"> <code class="descname">load_signed_short</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_signed_short" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_string"> <code class="descname">load_string</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.load_string"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_string" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.load_undefined"> <code class="descname">load_undefined</code><span class="sig-paren">(</span><em>data</em>, <em>legacy_api=True</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.load_undefined"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.load_undefined" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.named"> <code class="descname">named</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.named"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.named" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">dict of name|key: value</td> </tr> </tbody> </table> <p>Returns the complete tag dictionary, with named tags where possible.</p> </dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.offset"> <code class="descname">offset</code><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.offset" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.prefix"> <code class="descname">prefix</code><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.prefix" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.reset"> <code class="descname">reset</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.reset"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.reset" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.save"> <code class="descname">save</code><span class="sig-paren">(</span><em>fp</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.save"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.save" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_byte"> <code class="descname">write_byte</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.write_byte"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_byte" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_double"> <code class="descname">write_double</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_double" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_float"> <code class="descname">write_float</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_float" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_long"> <code class="descname">write_long</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_long" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_rational"> <code class="descname">write_rational</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.write_rational"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_rational" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_short"> <code class="descname">write_short</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_short" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_byte"> <code class="descname">write_signed_byte</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_byte" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_long"> <code class="descname">write_signed_long</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_long" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_rational"> <code class="descname">write_signed_rational</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.write_signed_rational"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_rational" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_short"> <code class="descname">write_signed_short</code><span class="sig-paren">(</span><em>*values</em><span class="sig-paren">)</span><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_signed_short" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_string"> <code class="descname">write_string</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.write_string"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_string" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.ImageFileDirectory_v2.write_undefined"> <code class="descname">write_undefined</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#ImageFileDirectory_v2.write_undefined"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.ImageFileDirectory_v2.write_undefined" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="PIL.TiffImagePlugin.TiffImageFile"> <em class="property">class </em><code class="descclassname">PIL.TiffImagePlugin.</code><code class="descname">TiffImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#TiffImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.TiffImageFile.format"> <code class="descname">format</code><em class="property"> = 'TIFF'</em><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.TiffImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Adobe TIFF'</em><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.TiffImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.TiffImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#TiffImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.TiffImageFile.load_end"> <code class="descname">load_end</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#TiffImageFile.load_end"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.load_end" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.TiffImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.TiffImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>frame</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#TiffImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Select a given frame as current image</p> </dd></dl> <dl class="attribute"> <dt id="PIL.TiffImagePlugin.TiffImageFile.size"> <code class="descname">size</code><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.size" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.TiffImagePlugin.TiffImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/TiffImagePlugin.html#TiffImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.TiffImagePlugin.TiffImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Return the current frame number</p> </dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.WebPImagePlugin"> <span id="webpimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">WebPImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.WebPImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.WebPImagePlugin.WebPImageFile"> <em class="property">class </em><code class="descclassname">PIL.WebPImagePlugin.</code><code class="descname">WebPImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/WebPImagePlugin.html#WebPImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.WebPImagePlugin.WebPImageFile.format"> <code class="descname">format</code><em class="property"> = 'WEBP'</em><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.WebPImagePlugin.WebPImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'WebP image'</em><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.WebPImagePlugin.WebPImageFile.is_animated"> <code class="descname">is_animated</code><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile.is_animated" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.WebPImagePlugin.WebPImageFile.load"> <code class="descname">load</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/WebPImagePlugin.html#WebPImageFile.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile.load" title="Permalink to this definition">¶</a></dt> <dd><p>Load image data based on tile list</p> </dd></dl> <dl class="attribute"> <dt id="PIL.WebPImagePlugin.WebPImageFile.n_frames"> <code class="descname">n_frames</code><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile.n_frames" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.WebPImagePlugin.WebPImageFile.seek"> <code class="descname">seek</code><span class="sig-paren">(</span><em>frame</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/WebPImagePlugin.html#WebPImageFile.seek"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile.seek" title="Permalink to this definition">¶</a></dt> <dd><p>Seeks to the given frame in this sequence file. If you seek beyond the end of the sequence, the method raises an <strong>EOFError</strong> exception. When a sequence file is opened, the library automatically seeks to frame 0.</p> <p>Note that in the current version of the library, most sequence formats only allows you to seek to the next frame.</p> <p>See <a class="reference internal" href="Image.html#PIL.Image.Image.tell" title="PIL.Image.Image.tell"><code class="xref py py-meth docutils literal notranslate"><span class="pre">tell()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>frame</strong> – Frame number, starting at 0.</td> </tr> <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><strong>EOFError</strong> – If the call attempts to seek beyond the end of the sequence.</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="PIL.WebPImagePlugin.WebPImageFile.tell"> <code class="descname">tell</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/WebPImagePlugin.html#WebPImageFile.tell"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.WebPImagePlugin.WebPImageFile.tell" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the current frame number. See <a class="reference internal" href="Image.html#PIL.Image.Image.seek" title="PIL.Image.Image.seek"><code class="xref py py-meth docutils literal notranslate"><span class="pre">seek()</span></code></a>.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Frame number, starting with 0.</td> </tr> </tbody> </table> </dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.WmfImagePlugin"> <span id="wmfimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">WmfImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.WmfImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.WmfImagePlugin.WmfStubImageFile"> <em class="property">class </em><code class="descclassname">PIL.WmfImagePlugin.</code><code class="descname">WmfStubImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/WmfImagePlugin.html#WmfStubImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.WmfImagePlugin.WmfStubImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.StubImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.WmfImagePlugin.WmfStubImageFile.format"> <code class="descname">format</code><em class="property"> = 'WMF'</em><a class="headerlink" href="#PIL.WmfImagePlugin.WmfStubImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.WmfImagePlugin.WmfStubImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'Windows Metafile'</em><a class="headerlink" href="#PIL.WmfImagePlugin.WmfStubImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="PIL.WmfImagePlugin.register_handler"> <code class="descclassname">PIL.WmfImagePlugin.</code><code class="descname">register_handler</code><span class="sig-paren">(</span><em>handler</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/WmfImagePlugin.html#register_handler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.WmfImagePlugin.register_handler" title="Permalink to this definition">¶</a></dt> <dd><p>Install application-specific WMF image handler.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>handler</strong> – Handler object.</td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-PIL.XVThumbImagePlugin"> <span id="xvthumbimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">XVThumbImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.XVThumbImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.XVThumbImagePlugin.XVThumbImageFile"> <em class="property">class </em><code class="descclassname">PIL.XVThumbImagePlugin.</code><code class="descname">XVThumbImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/XVThumbImagePlugin.html#XVThumbImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.XVThumbImagePlugin.XVThumbImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.XVThumbImagePlugin.XVThumbImageFile.format"> <code class="descname">format</code><em class="property"> = 'XVThumb'</em><a class="headerlink" href="#PIL.XVThumbImagePlugin.XVThumbImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.XVThumbImagePlugin.XVThumbImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'XV thumbnail image'</em><a class="headerlink" href="#PIL.XVThumbImagePlugin.XVThumbImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.XbmImagePlugin"> <span id="xbmimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">XbmImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.XbmImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.XbmImagePlugin.XbmImageFile"> <em class="property">class </em><code class="descclassname">PIL.XbmImagePlugin.</code><code class="descname">XbmImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/XbmImagePlugin.html#XbmImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.XbmImagePlugin.XbmImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.XbmImagePlugin.XbmImageFile.format"> <code class="descname">format</code><em class="property"> = 'XBM'</em><a class="headerlink" href="#PIL.XbmImagePlugin.XbmImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.XbmImagePlugin.XbmImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'X11 Bitmap'</em><a class="headerlink" href="#PIL.XbmImagePlugin.XbmImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> <div class="section" id="module-PIL.XpmImagePlugin"> <span id="xpmimageplugin-module"></span><h2><code class="xref py py-mod docutils literal notranslate"><span class="pre">XpmImagePlugin</span></code> Module<a class="headerlink" href="#module-PIL.XpmImagePlugin" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="PIL.XpmImagePlugin.XpmImageFile"> <em class="property">class </em><code class="descclassname">PIL.XpmImagePlugin.</code><code class="descname">XpmImageFile</code><span class="sig-paren">(</span><em>fp=None</em>, <em>filename=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/XpmImagePlugin.html#XpmImageFile"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.XpmImagePlugin.XpmImageFile" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">PIL.ImageFile.ImageFile</span></code></p> <dl class="attribute"> <dt id="PIL.XpmImagePlugin.XpmImageFile.format"> <code class="descname">format</code><em class="property"> = 'XPM'</em><a class="headerlink" href="#PIL.XpmImagePlugin.XpmImageFile.format" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="PIL.XpmImagePlugin.XpmImageFile.format_description"> <code class="descname">format_description</code><em class="property"> = 'X11 Pixel Map'</em><a class="headerlink" href="#PIL.XpmImagePlugin.XpmImageFile.format_description" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="PIL.XpmImagePlugin.XpmImageFile.load_read"> <code class="descname">load_read</code><span class="sig-paren">(</span><em>bytes</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/PIL/XpmImagePlugin.html#XpmImageFile.load_read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#PIL.XpmImagePlugin.XpmImageFile.load_read" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="internal_design.html" class="btn btn-neutral float-right" title="Internal Reference Docs" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="../PIL.html" class="btn btn-neutral float-left" title="PIL Package (autodoc of remaining modules)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> © Copyright 1995-2011 Fredrik Lundh, 2010-2018 Alex Clark and Contributors </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>