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.
Release files for exif-stripper 1.2.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 | |
|---|---|---|---|
| exif_stripper-1.2.0.tar.gz | 54.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exif_stripper-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.4 kB
Release files / exif_stripper-1.2.0.tar.gz
| Download URL | exif_stripper-1.2.0.tar.gz |
|---|---|
| Size | 54.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2296d5ad3811a4042854d195f5fdc402cd25d8a53ac213abefedcb341b536fb5
|
|
BLAKE2b-256 checksum How to use checksums |
7848d3fe518ed2bd3faeb329dab76cb5effe476614a6ddcbdb2e0128596332c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 24, 2025.
Transparency logRelease files / exif_stripper-1.2.0-py3-none-any.whl
| Download URL | exif_stripper-1.2.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c921969e5125e28ddd38ddd85fe749be27d5547451b64289caf23853e9e16a9a
|
|
BLAKE2b-256 checksum How to use checksums |
cd0848ebf226df6651b9164389ac119ce5f4d00d2998294e7b2854a271c48815
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 24, 2025.
Transparency log