An easy-to-use tool to ensure image EXIF metadata is removed.
Project description
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: 0.6.1
hooks:
- id: strip-exif
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file exif_stripper-0.6.1.tar.gz
.
File metadata
- Download URL: exif_stripper-0.6.1.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc88e97d64318503d30a988f354884855dfb5924369820db314b024c76b4f914 |
|
MD5 | dc9f62f0f3b71d5f5960950fba1473e7 |
|
BLAKE2b-256 | 23e4b20a60daf7e8cf51278831a137fd4081e46ecb1a36e3d4de944bd594a660 |
Provenance
The following attestation bundles were made for exif_stripper-0.6.1.tar.gz
:
Publisher:
pypi-publish.yml
on stefmolin/exif-stripper
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
exif_stripper-0.6.1.tar.gz
- Subject digest:
bc88e97d64318503d30a988f354884855dfb5924369820db314b024c76b4f914
- Sigstore transparency entry: 148651461
- Sigstore integration time:
- Permalink:
stefmolin/exif-stripper@197ac363ddc4e233901166121a8dc3075f9e3694
- Branch / Tag:
refs/tags/0.6.1
- Owner: https://github.com/stefmolin
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi-publish.yml@197ac363ddc4e233901166121a8dc3075f9e3694
- Trigger Event:
push
- Statement type:
File details
Details for the file exif_stripper-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: exif_stripper-0.6.1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d3885570428065daac30c29628f5d96ae40a2ebf9e4a4e20d70f1e15c116f54 |
|
MD5 | 54ff33516963af5adde286e9e9283a15 |
|
BLAKE2b-256 | 96f6846b13a8861b781e4a26e78b299755a3401b9adbc588e116bef47e21546d |
Provenance
The following attestation bundles were made for exif_stripper-0.6.1-py3-none-any.whl
:
Publisher:
pypi-publish.yml
on stefmolin/exif-stripper
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
exif_stripper-0.6.1-py3-none-any.whl
- Subject digest:
9d3885570428065daac30c29628f5d96ae40a2ebf9e4a4e20d70f1e15c116f54
- Sigstore transparency entry: 148651462
- Sigstore integration time:
- Permalink:
stefmolin/exif-stripper@197ac363ddc4e233901166121a8dc3075f9e3694
- Branch / Tag:
refs/tags/0.6.1
- Owner: https://github.com/stefmolin
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi-publish.yml@197ac363ddc4e233901166121a8dc3075f9e3694
- Trigger Event:
push
- Statement type: