exif-stripper
An easy-to-use tool to ensure image EXIF metadata is removed. Read more about why this is important here.
Usage
Pre-commit hook
Add the following to your .pre-commit-config.yaml file:
- repo: https://github.com/stefmolin/exif-stripper
rev: <version>
hooks:
- id: strip-exif
If you only want to remove certain fields, use the --fields argument. Note that this argument supports multiple options, which are shown when running exif-stripper --help. Be very careful when doing this as you might be leaving some sensitive information behind. Here, we only remove GPS information:
- repo: https://github.com/stefmolin/exif-stripper
rev: <version>
hooks:
- id: strip-exif
args: [--fields=gps]
Be sure to check out the pre-commit documentation for additional configuration options.
Command line
First, install the exif-stripper package from PyPI:
$ python -m pip install exif-stripper
Then, use the exif-stripper entry point on the file(s) of your choice (use strip-exif for versions before 0.6.0):
$ exif-stripper /path/to/file [/path/to/another/file]
Run exif-stripper --help for more information.
Python
First, install the exif-stripper package from PyPI:
$ python -m pip install exif-stripper
Then, use the process_image() function on individual files (returns True if the file was altered and False otherwise):
from exif_stripper import process_image
process_image('/path/to/image')
Note: This requires version 0.4.0 or above.
Contributing
Please consult the contributing guidelines.
Metadata
Release files for exif-stripper 1.3.1
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 |
|---|---|---|---|---|
| exif_stripper-1.3.1.tar.gz | 63.1 kB | With provenance | Details for exif_stripper-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exif_stripper-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for exif_stripper-1.3.1-py3-none-any.whl |
Total release size: 73.4 kB
Release files / exif_stripper-1.3.1.tar.gz
| Download URL | exif_stripper-1.3.1.tar.gz |
|---|---|
| Size | 63.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97382b38970193d3e28c24ca6c50598982832f18c12367e1db6fdeec800d6e29
|
|
BLAKE2b-256 checksum How to use checksums |
59cb67c2d8662b27b18c0052ea70a6c479bea38d55b66041301f7175ec0bd203
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / exif_stripper-1.3.1-py3-none-any.whl
| Download URL | exif_stripper-1.3.1-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f88248542f446ace32b4a083fd3fae559228721e5e39323787949c8f8346c533
|
|
BLAKE2b-256 checksum How to use checksums |
6ef8440bced9d00419541d7725a39305f94cf8ff47592afffaa3cd36cc9a20dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logSecurity for exif-stripper 1.3.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for exif_stripper-1.3.1.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 Oct 17, 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.