Python Imaging Library (Fork)
Go to file
Benjamin Gilbert 8053d5e5a0 Allow disabling default emission of JPEG APP0 and APP14 segments
When embedding JPEGs into a container file format, it may be desirable
to minimize JPEG metadata, since the container will include the pertinent
details.  By default, libjpeg emits a JFIF APP0 segment for JFIF-
compatible colorspaces (grayscale or YCbCr) and Adobe APP14 otherwise.
Add a no_default_app_segments option to disable these.

660894cd36 added code to force emission of the JFIF segment if the DPI is
specified, even for JFIF-incompatible colorspaces.  This seems
inconsistent with the JFIF spec, but apparently other software does it
too.  no_default_app_segments does not disable this behavior, since it
only happens when the application explicitly specifies the DPI.
2024-01-08 05:33:12 -06:00
_custom_build Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
.ci Install cibuildwheel from requirements file 2023-11-28 13:12:42 +02:00
.github Merge branch 'main' into winbuild-amd64 2024-01-05 09:52:12 +11:00
depends Updated libimagequant to 4.2.2 2023-10-14 11:56:23 +11:00
docs Allow disabling default emission of JPEG APP0 and APP14 segments 2024-01-08 05:33:12 -06:00
src Allow disabling default emission of JPEG APP0 and APP14 segments 2024-01-08 05:33:12 -06:00
Tests Allow disabling default emission of JPEG APP0 and APP14 segments 2024-01-08 05:33:12 -06:00
wheels Updated README after cibuildwheel integration [ci skip] 2023-11-25 21:56:23 +11:00
winbuild fix comments 2024-01-04 22:10:11 +01:00
.appveyor.yml rename x64 to AMD64 in winbuild/build_prepare.py 2024-01-04 20:26:14 +01:00
.clang-format Adjust clang-format style 2021-01-03 14:16:42 +11:00
.coveragerc Remove unused create_lut() 2023-12-31 20:06:40 +02:00
.editorconfig editorconfig: specify 2-space indent for TOML 2023-11-06 12:42:44 +02:00
.git-blame-ignore-revs Update .git-blame-ignore-revs 2023-11-17 13:06:44 +02:00
.gitattributes Set EPS test files as binary 2018-12-29 21:53:07 -08:00
.gitignore Updated test images origin 2023-02-08 10:01:10 +11:00
.gitmodules Updated wheel build process for new location 2023-09-24 22:51:42 +10:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2024-01-01 17:16:45 +00:00
.readthedocs.yml Use latest version of Python 2023-12-09 09:09:49 +11:00
CHANGES.rst Update CHANGES.rst [ci skip] 2024-01-06 07:03:40 +11:00
codecov.yml Restored 32-bit support 2023-06-27 14:43:58 +10:00
conftest.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
LICENSE Updated copyright year 2023-12-31 18:37:16 +11:00
Makefile Black infers target-version from requires-python in pyproject.toml 2023-11-11 16:49:04 +11:00
MANIFEST.in Switch linting to ruff 2023-11-06 12:43:14 +02:00
pyproject.toml Merge pull request #7642 from nulano/types-util 2024-01-01 21:27:57 +11:00
README.md Goodbye Travis CI 2024-01-04 12:51:05 +02:00
RELEASING.md Goodbye Travis CI 2024-01-04 12:51:05 +02:00
selftest.py Added type hints 2023-12-26 22:26:11 +11:00
setup.py Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
tox.ini [pre-commit.ci] auto fixes from pre-commit.com hooks 2023-12-27 13:57:22 +00:00

Pillow logo

Pillow

Python Imaging Library (Fork)

Pillow is the friendly PIL fork by Jeffrey A. Clark (Alex) and contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. As of 2019, Pillow development is supported by Tidelift.

docs Documentation Status
tests GitHub Actions build status (Lint) GitHub Actions build status (Test Linux and macOS) GitHub Actions build status (Test Windows) GitHub Actions build status (Test MinGW) GitHub Actions build status (Test Cygwin) GitHub Actions build status (Test Docker) AppVeyor CI build status (Windows) GitHub Actions build status (Wheels) Code coverage Fuzzing Status
package Zenodo Tidelift Newest PyPI version Number of PyPI downloads OpenSSF Best Practices
social Join the chat at https://gitter.im/python-pillow/Pillow Follow on https://twitter.com/PythonPillow Follow on https://fosstodon.org/@pillow

Overview

The Python Imaging Library adds image processing capabilities to your Python interpreter.

This library provides extensive file format support, an efficient internal representation, and fairly powerful image processing capabilities.

The core image library is designed for fast access to data stored in a few basic pixel formats. It should provide a solid foundation for a general image processing tool.

More Information

Report a Vulnerability

To report a security vulnerability, please follow the procedure described in the Tidelift security policy.