<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Python_Imaging_Library</id>
	<title>Python Imaging Library - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Python_Imaging_Library"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Python_Imaging_Library&amp;action=history"/>
	<updated>2026-07-04T02:35:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Python_Imaging_Library&amp;diff=6832429&amp;oldid=prev</id>
		<title>imported&gt;SchlurcherBot: Bot: http → https</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Python_Imaging_Library&amp;diff=6832429&amp;oldid=prev"/>
		<updated>2025-09-04T06:37:36Z</updated>

		<summary type="html">&lt;p&gt;Bot: http → https&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Library for the Python programming language}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Python Imaging Library&lt;br /&gt;
| logo = &lt;br /&gt;
| screenshot = &lt;br /&gt;
| caption = &lt;br /&gt;
| collapsible = &lt;br /&gt;
| author = Fredrik Lundh&lt;br /&gt;
| developer = Secret Labs AB&lt;br /&gt;
| released = {{Start date and age|df=yes|1995|}}&amp;lt;ref name=&amp;quot;license&amp;quot;/&amp;gt;&lt;br /&gt;
| latest release version = 1.1.7&lt;br /&gt;
| latest release date = {{Start date and age|2009|11|15}}&amp;lt;ref name=&amp;quot;website&amp;quot;&amp;gt;{{cite web |url=http://www.pythonware.com/products/pil/ |archive-url=https://web.archive.org/web/20201121102218/http://www.pythonware.com/products/pil/ |archive-date=21 November 2020 |title=Python Imaging Library |website=Secret Labs AB |accessdate=December 8, 2013}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| latest preview version = 1.2a0&amp;lt;ref name=&amp;quot;hg&amp;quot;&amp;gt;{{cite web |title=effbot / pil-2009-raclette |url=http://hg.effbot.org/pil-2009-raclette |archive-url=https://web.archive.org/web/20150315041249/http://hg.effbot.org/pil-2009-raclette |archive-date=15 March 2015 |accessdate=December 8, 2013 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| latest preview date = {{Start date and age|2011||}}&lt;br /&gt;
| frequently updated = &amp;lt;!-- DO NOT include this parameter unless you know what it does --&amp;gt;&lt;br /&gt;
| programming language = [[Python (programming language)|Python]], [[C (programming language)|C]]&lt;br /&gt;
| operating system = &lt;br /&gt;
| platform = &lt;br /&gt;
| size = &lt;br /&gt;
| language = &lt;br /&gt;
| status = &lt;br /&gt;
| genre = Library for [[image processing]]&lt;br /&gt;
| license = [[Historical Permission Notice and Disclaimer]]&amp;lt;ref name=&amp;quot;license&amp;quot;&amp;gt;{{cite web |title=Software License |website=Secret Labs AB |url=http://www.pythonware.com/products/pil/license.htm |archive-url=https://web.archive.org/web/20200720222143/http://www.pythonware.com/products/pil/license.htm |archive-date=20 July 2020 |accessdate=December 8, 2013}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| website = {{url|https://python-pillow.github.io/}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Pillow&lt;br /&gt;
| logo = &lt;br /&gt;
| screenshot = &lt;br /&gt;
| caption = &lt;br /&gt;
| collapsible = &lt;br /&gt;
| author = Jeffrey A. Clark (Alex)&lt;br /&gt;
| developer = &lt;br /&gt;
| released = {{Start date and age|df=yes|2010|07|31}}&amp;lt;ref name=&amp;quot;license&amp;quot;/&amp;gt;&lt;br /&gt;
| latest release version = 11.1.0&lt;br /&gt;
| latest release date = {{Start date and age|2025|01|02}}&amp;lt;ref&amp;gt;{{cite web | url=https://pillow.readthedocs.io/en/stable/releasenotes/ | title=Release Notes | website=Pillow (PIL Fork) Documentation | access-date=February 5, 2025}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| frequently updated = &amp;lt;!-- DO NOT include this parameter unless you know what it does --&amp;gt;&lt;br /&gt;
| programming language = [[Python (programming language)|Python]], [[C (programming language)|C]]&lt;br /&gt;
| operating system = &lt;br /&gt;
| platform = &lt;br /&gt;
| size = &lt;br /&gt;
| language = &lt;br /&gt;
| status = &lt;br /&gt;
| genre = Library for [[image processing]]&lt;br /&gt;
| license = [[Historical Permission Notice and Disclaimer]]&amp;lt;ref name=&amp;quot;license&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
| website = {{url|https://python-pillow.github.io/}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Python Imaging Library&amp;#039;&amp;#039;&amp;#039; is a [[Free and open-source software|free and open-source]] additional [[Library (computing)|library]] for the [[Python (programming language)|Python programming language]] that adds support for opening, [[Image editing|manipulating]], and saving many different [[image file formats]]. It is available for [[Microsoft Windows|Windows]], {{nowrap|Mac OS X}} and [[Linux]]. The latest version of PIL is 1.1.7, was released in September 2009 and supports Python 1.5.2–2.7.&amp;lt;ref name=&amp;quot;website&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Development of the original project, known as &amp;#039;&amp;#039;&amp;#039;PIL&amp;#039;&amp;#039;&amp;#039;, was discontinued in 2011.&amp;lt;ref name=&amp;quot;hg&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt; Subsequently, a successor project named &amp;#039;&amp;#039;&amp;#039;Pillow&amp;#039;&amp;#039;&amp;#039; [[Fork (software development)|forked]] the PIL repository and added Python 3.x support.&amp;lt;ref name=&amp;quot;pillow&amp;quot;&amp;gt;{{cite web |title=Pillow: a modern fork of PIL |url=https://pillow.readthedocs.org/en/latest/ |accessdate=December 8, 2013}}&amp;lt;/ref&amp;gt; This fork has been adopted as a replacement for the original PIL in [[Linux distribution]]s including [[Debian GNU/Linux|Debian]]&amp;lt;ref&amp;gt;{{cite web |title=Details of package python-imaging in sid |website=packages.debian.org |publisher=[[Software in the Public Interest]] |url=http://packages.debian.org/sid/python-imaging |access-date=December 8, 2013}}&amp;lt;/ref&amp;gt; and [[Ubuntu]] (since [[Ubuntu version history#1304|13.04]]).&amp;lt;ref&amp;gt;{{cite web |title=Details of package python-imaging in raring |website=ubuntu.com |publisher=[[Canonical Ltd.]] |url=https://packages.ubuntu.com/raring/python/python-imaging |access-date=December 8, 2013}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Capabilities==&lt;br /&gt;
PIL offers several standard procedures for image manipulation. These include:&lt;br /&gt;
* per-pixel manipulations,&amp;lt;ref&amp;gt;{{Cite web |title=PyAccess Module |url=https://pillow.readthedocs.io/en/stable/reference/PyAccess.html |access-date=September 20, 2024 |website=readthedocs.io}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* masking and transparency handling,&lt;br /&gt;
* image filtering, such as blurring, contouring, smoothing, or edge finding,&amp;lt;ref&amp;gt;{{Cite web |title=ImageFilter Module |url=https://pillow.readthedocs.io/en/stable/reference/ImageFilter.html |access-date=September 20, 2024 |website=readthedocs.io}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* image enhancing, such as sharpening, adjusting brightness, contrast or color,&amp;lt;ref&amp;gt;{{Cite web |title=ImageColor Module |url=https://pillow.readthedocs.io/en/stable/reference/ImageColor.html |access-date=September 20, 2024 |website=readthedocs.io}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* adding text&lt;br /&gt;
&lt;br /&gt;
==File formats==&lt;br /&gt;
Supported file formats include [[Netpbm format|PPM]], [[Portable Network Graphics|PNG]], [[JPEG]], [[GIF]], [[TIFF]], and [[BMP file format|BMP]].&lt;br /&gt;
PIL is extensible, allowing users to create custom decoders for any file format.&amp;lt;ref&amp;gt;{{cite web|url=http://effbot.org/imagingbook/decoder.htm |title=D. Writing Your Own File Decoder |publisher=Effbot.org |date= |accessdate=2014-01-28}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Programming examples ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import os&lt;br /&gt;
from PIL import Image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def convert_jpegs_to_pngs(folder_path):&lt;br /&gt;
    # Checks if the provided path is a folder&lt;br /&gt;
    if not os.path.isdir(folder_path):&lt;br /&gt;
        print(f&amp;quot;Error: {folder_path} is not a valid folder.&amp;quot;)&lt;br /&gt;
        return&lt;br /&gt;
&lt;br /&gt;
    # Iterates over all files in the folder&lt;br /&gt;
    for filename in os.listdir(folder_path):&lt;br /&gt;
        # Checks if the file has a .jpg or .jpeg extension&lt;br /&gt;
        if filename.lower().endswith(&amp;quot;.jpg&amp;quot;) or filename.lower().endswith(&amp;quot;.jpeg&amp;quot;):&lt;br /&gt;
            # Full path of the file&lt;br /&gt;
            jpeg_path = os.path.join(folder_path, filename)&lt;br /&gt;
            # Path for the converted file&lt;br /&gt;
            png_path = os.path.join(folder_path, os.path.splitext(filename)[0] + &amp;quot;.png&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
            try:&lt;br /&gt;
                # Opens the JPEG image&lt;br /&gt;
                with Image.open(jpeg_path) as img:&lt;br /&gt;
                    # Converts and saves as PNG&lt;br /&gt;
                    img.save(png_path, &amp;quot;PNG&amp;quot;)&lt;br /&gt;
                    print(f&amp;quot;Converted {jpeg_path} to {png_path}&amp;quot;)&lt;br /&gt;
            except Exception as e:&lt;br /&gt;
                print(f&amp;quot;Error converting {jpeg_path}: {e}&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*{{Official website|https://web.archive.org/web/20201121102218/http://www.pythonware.com/products/pil/}}&lt;br /&gt;
*[https://web.archive.org/web/20200914010747/https://effbot.org/imagingbook/ PIL Library reference]&lt;br /&gt;
*{{wikibooks-inline|Python Imaging Library}}&lt;br /&gt;
*[https://python-pillow.github.io/ Pillow (Successor project)]&lt;br /&gt;
*[https://gethowstuff.com/python-pillow-pil-tutorial-examples/ PIL Tutorial Examples]&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphics libraries]]&lt;br /&gt;
[[Category:Python (programming language) libraries]]&lt;/div&gt;</summary>
		<author><name>imported&gt;SchlurcherBot</name></author>
	</entry>
</feed>