Skip to main content

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exif-stripper 1.3.0
File Size Uploaded
exif_stripper-1.3.0.tar.gz 63.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exif-stripper 1.3.0
File Interpreter ABI Platform
exif_stripper-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.4 kB

Release files / exif_stripper-1.3.0.tar.gz

Download URL exif_stripper-1.3.0.tar.gz
Size 63.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5815abae77362366b317f2ffdd5a8eee900df5be76eed066d2d683701bbe3ee9
BLAKE2b-256 checksum
How to use checksums
769c1e9c74bad4f2f37b53884fa33abd744a1f7476b91d9933b40dfed3244f71
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 log

Release files / exif_stripper-1.3.0-py3-none-any.whl

Download URL exif_stripper-1.3.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ad6d0a01132a83447d3953751d269b8d1b6d7a4447929b6e8a0966445b10b60
BLAKE2b-256 checksum
How to use checksums
21bf222140c8bd3090d4c681a0eed5635e412107ed785120f848a8406a5c83f0
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 log

Release history Release notifications | RSS feed

1.3.1

2 release files

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page