The python-image-complete package allows you to check for various image types to check whether the image is complete or not. For doing this, it looks for EOF (end of file) markers in the files or compares the stored file length against the actual file length.
Can also operate on bytes or BytesIO objects.
By default, the library operates in strict mode, i.e., no trailing junk data is tolerated. However, by supplying the parameters strict and check_size this can turned into lenient mode. The parameter check_size (i.e., the number of bytes to read from the end of the file) is only used for formats gif, jpg, png.
Supported file formats:
BMP (extension: .bmp)
GIF (extension: .gif)
JPG (extension: .jpg, .jpeg)
PNG (extension: .png)
WebP (extension: .webp)
Changelog
0.0.6 (2026-03-02)
switched to underscores in project name
approved astro-jingtao’s PR that enhances the image type detection and validation logic (https://github.com/waikato-datamining/python-image-complete/pull/3)
0.0.5 (2023-04-17)
added support for lenient mode via strict and check_size parameters
0.0.4 (2023-03-30)
added support for determining completeness of bytes or BytesIO objects rather than just file names
added is_XYZ methods that determine whether a file/bytes/BytesIO represents file type XYZ
0.0.3 (2023-03-28)
added support for: WebP
0.0.2 (2020-01-13)
added support for: BMP
0.0.1 (2019-04-17)
initial release
support for: GIF, JPG, PNG
Metadata
Release files for python-image-complete 0.0.6
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 |
|---|---|---|---|---|
| python_image_complete-0.0.6.tar.gz | 6.9 kB | Without provenance | Details for python_image_complete-0.0.6.tar.gz |
Release files / python_image_complete-0.0.6.tar.gz
| Download URL | python_image_complete-0.0.6.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abb0660314c6f5dd8c44eb8d748fca3ae721ea4d669311164a9550094b760498
|
|
BLAKE2b-256 checksum How to use checksums |
cc58610c93a03ce287752162380a1cc67dec0c61c1bcd64abc318e2ecfec82bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.20
|
Security for python-image-complete 0.0.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.