Immaculate
Find problematic images fast.
Installation
pip install immaculate
Usage
from immaculate import Blurry, NearDuplicates, find_issues
issues = find_issues("photos/")
issues.near_duplicates # [[PosixPath('photos/robin.jpg'), PosixPath('photos/robin_edited.jpg')]]
issues.blurry # [PosixPath('photos/goldfinch.jpg')], and likewise for each check below
issues.truncated # [PosixPath('photos/great_tit.jpg')]
issues = find_issues("photos/", [NearDuplicates(), Blurry()]) # only some checks
Or from the command line:
$ immaculate photos/ --issues near_duplicates blurry
Near duplicates: 1 set
photos/robin.jpg
photos/robin_edited.jpg
Blurry: 1 image
photos/goldfinch.jpg
Checks
| Check | On the command line | Finds | Settings (defaults) |
|---|---|---|---|
ExactDuplicates |
exact_duplicates |
Images with identical pixels, even if saved with different metadata or in another lossless format | |
NearDuplicates |
near_duplicates |
Resized, recompressed, flipped and rotated copies; see methods | method ("pdq") |
Dark |
dark |
Images that are almost all dark | brightness (0.32), fraction (0.01) |
Light |
light |
Images that are almost all light | brightness (0.95), fraction (0.05) |
Blurry |
blurry |
Blurry images | sharpness (5.0) |
LowInformation |
low_information |
Images with few distinct colors, such as blank ones | entropy (3.0) |
OddAspectRatio |
odd_aspect_ratio |
Unusually long or tall images | ratio (0.35) |
OddSize |
odd_size |
Images much larger or smaller than the others | iqr_factor (3.0) |
Grayscale |
grayscale |
Grayscale images, including color files whose pixels are all gray | tolerance (2) |
LowContrast |
low_contrast |
Washed-out, foggy or otherwise flat-looking images | contrast (0.05) |
Truncated |
truncated |
Images whose files end early, such as interrupted downloads, which often still decode with a gray patch |
Pass each check with its settings, such as Dark(brightness=0.2), or Dark() for the defaults.
See checks for what each setting does.
Benchmarks
Every check CleanVision has, run together on 250 images of INRIA Copydays:
| Time | Peak memory | Images flagged | |
|---|---|---|---|
| Immaculate | 0.73 s | 387 MiB | 12 |
| CleanVision | 14.12 s | 2,974 MiB | 12 |
See the benchmarks for how this was run, and for comparisons with other libraries.
Metadata
Release files for Immaculate 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| immaculate-0.4.0.tar.gz | 133.0 kB | With provenance | Details for immaculate-0.4.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| immaculate-0.4.0-cp312-abi3-win_arm64.whl | CPython 3.12 | abi3 | Windows ARM64 | Details for immaculate-0.4.0-cp312-abi3-win_arm64.whl |
| immaculate-0.4.0-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details for immaculate-0.4.0-cp312-abi3-win_amd64.whl |
| immaculate-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details for immaculate-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl |
| immaculate-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ ARM64 | Details for immaculate-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl |
| immaculate-0.4.0-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for immaculate-0.4.0-cp312-abi3-macosx_11_0_arm64.whl |
| immaculate-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl | CPython 3.12 | abi3 | macOS 10.12+ x86-64 | Details for immaculate-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl |
Total release size: 5.5 MB
Release files / immaculate-0.4.0.tar.gz
| Download URL | immaculate-0.4.0.tar.gz |
|---|---|
| Size | 133.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6eeff2021613f659e7848129d13b4e5ba0c7f8620bdebc656178eaa49e831570
|
|
BLAKE2b-256 checksum How to use checksums |
cb2940fc3260f6e3550a633c28b70a00b0a262792f89311faf711a64d8737c77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / immaculate-0.4.0-cp312-abi3-win_arm64.whl
| Download URL | immaculate-0.4.0-cp312-abi3-win_arm64.whl |
|---|---|
| Size | 845.4 kB |
| Tags | CPython 3.12 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
cb4be6e6400fa86c8118a67cb4810b9fc12be7c33f2ac473339b6f4e5df72b82
|
|
BLAKE2b-256 checksum How to use checksums |
169902790ad02ddf22268ba5d36a0f62478509dbe2bbb1fd3e6e0af956b03cce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / immaculate-0.4.0-cp312-abi3-win_amd64.whl
| Download URL | immaculate-0.4.0-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 894.7 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6f7da4d72473eec3022a849e8e91be2e6e24249cfd5c590363a222f906f8d238
|
|
BLAKE2b-256 checksum How to use checksums |
6f68ae2a6201bec0d433a249fa2c8d07714ff12db32e64f339b59df3a53afadb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / immaculate-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | immaculate-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 943.8 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
801d4edfadee03f7c70d7277d7af7b6d21121e609b7684106f1784d788097551
|
|
BLAKE2b-256 checksum How to use checksums |
c39ebaf020d815ffde808231cbb688fcaf7a347667937a1623cd5e08da5afbe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / immaculate-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | immaculate-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 909.9 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2bfbb2cd1a8513b7408e89d7e25c9862b1ba5b3dcee7fe4acee1c7d38638e52d
|
|
BLAKE2b-256 checksum How to use checksums |
e15533a4f021adad8449be176209e9a7118fc4a8047f9a17649421ebb0ca9365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / immaculate-0.4.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | immaculate-0.4.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 863.7 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3708972951d5328180d71c7f034f0bb835d1ea46dc643b81bb6ff3561b11ffa0
|
|
BLAKE2b-256 checksum How to use checksums |
2298e0cb9a4d15a9f0022be07fc22b8e354c0024a69ab7f9edeb7803908baad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / immaculate-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | immaculate-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 901.1 kB |
| Tags | CPython 3.12 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f9cbab8bd45984c3df515141b08597004c697311e8c2e608297c215a329a03d4
|
|
BLAKE2b-256 checksum How to use checksums |
2f3fc1692a049da8f57c0fc967dce87d5eab6b93f3841d161648d79444da45db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for Immaculate 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for immaculate-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.