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

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.1
File Size Uploaded
exif_stripper-1.3.1.tar.gz 63.1 kB Details

Built distribution (wheel)

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

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3.0

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