encyclopegia.org

Python Imaging Library

Python Imaging Library is a free and open-source additional library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats. It is available for Windows, macOS and Linux. The latest version of PIL is 1.1.7, was released in September 2009 and supports Python 1.5.2–2.7. Development of the original project, known as PIL, was discontinued in 2011. Subsequently, a successor project named Pillow forked the PIL repository and added Python 3.x support. This fork has been adopted as a replacement for the original PIL in Linux distributions including Debian and Ubuntu (since 13.04).

Python Imaging Library is a free and open-source additional library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats. It is available for Windows, macOS and Linux. The latest version of PIL is 1.1.7, was released in September 2009 and supports Python 1.5.2–2.7. Development of the original project, known as PIL, was discontinued in 2011. Subsequently, a successor project named Pillow forked the PIL repository and added Python 3.x support. This fork has been adopted as a replacement for the original PIL in Linux distributions including Debian and Ubuntu (since 13.04). ==Capabilities== PIL offers several standard procedures for image manipulation. These include: per-pixel manipulations, masking and transparency handling, image filtering, such as blurring, contouring, smoothing, or edge finding, image enhancing, such as sharpening, adjusting brightness, contrast or color, adding text ==File formats== Supported file formats include PPM, PNG, JPEG, GIF, TIFF, and BMP. PIL is extensible, allowing users to create custom decoders for any file format. import os from PIL import Image def convert_jpegs_to_pngs(folder_path): # Checks if the provided path is a folder if not os.path.isdir(folder_path): print(f"Error: {folder_path} is not a valid folder.") return # Iterates over all files in the folder for filename in os.listdir(folder_path): # Checks if the file has a .jpg or .jpeg extension if filename.lower().endswith(".jpg") or filename.lower().endswith(".jpeg"): # Full path of the file jpeg_path = os.path.join(folder_path, filename) # Path for the converted file png_path = os.path.join(folder_path, os.path.splitext(filename)[0] + ".png") try: # Opens the JPEG image with Image.open(jpeg_path) as img: # Converts and saves as PNG img.save(png_path, "PNG") print(f"Converted {jpeg_path} to {png_path}") except Exception as e: print(f"Error converting {jpeg_path}: {e}") ==References== ==External links== PIL Library reference Pillow (Successor project) PIL Tutorial Examples

References

No reference rows published for this article.

Cite this article

MLA

"Python Imaging Library." encyclopegia.org, 2026, https://encyclopegia.org/wiki/python-imaging-library. Accessed 23 November 2026.

Chicago

"Python Imaging Library." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/python-imaging-library.

APA

encyclopegia.org. (2026). Python Imaging Library. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/python-imaging-library

Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date2009Wikipedia

Related articles

It's a Big Daddy Thing

enwiki · references available

Twilight's Last Gleaming

enwiki · references available

White Oaks Mall (London, Ontario)

enwiki · references available

I-74 Bridge

enwiki · references available

Anthracosauria

enwiki · references available

Missouri Route 210

enwiki · references available

Union League

enwiki · references available

Moroccan dirham

enwiki · references available

Yogoda Satsanga Society of India

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1359413382 · 0.5 · snapshot enwiki-001359413382

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.