Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exif_stripper-0.6.1.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

exif_stripper-0.6.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

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

Hashes for exif_stripper-0.6.1.tar.gz
Algorithm Hash digest
SHA256 bc88e97d64318503d30a988f354884855dfb5924369820db314b024c76b4f914
MD5 dc9f62f0f3b71d5f5960950fba1473e7
BLAKE2b-256 23e4b20a60daf7e8cf51278831a137fd4081e46ecb1a36e3d4de944bd594a660

See more details on using hashes here.

Provenance

The following attestation bundles were made for exif_stripper-0.6.1.tar.gz:

Publisher: pypi-publish.yml on stefmolin/exif-stripper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file exif_stripper-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for exif_stripper-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d3885570428065daac30c29628f5d96ae40a2ebf9e4a4e20d70f1e15c116f54
MD5 54ff33516963af5adde286e9e9283a15
BLAKE2b-256 96f6846b13a8861b781e4a26e78b299755a3401b9adbc588e116bef47e21546d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page