stefmolin / exif-stripper

An easy-to-use tool to ensure image metadata (EXIF data and extended attributes) is removed.
https://pypi.org/project/exif-stripper/
Apache License 2.0
17 stars 5 forks source link

Support the option to exclude EXIF stripping by directory #36

Closed monksy closed 1 month ago

monksy commented 3 months ago

Is your feature request related to a problem? Please describe.

There are plugins for Jekyll that will extract the EXIF info for photos and allow for you to pass them in in other places. Sometimes that might be as intended.

https://github.com/NiklasEi/jekyll-exif-data

Describe the solution you'd like

I would like for an configurable option to specify excluded directories that don't strip images. A warning might be good in the console that the file is being skipped due to being in a particular directory.

Documentation updated for the configuration.

Describe alternatives you've considered

None.

Additional context

github-actions[bot] commented 3 months ago

It looks like this is your first issue here – welcome! Please familiarize yourself with the contributing guidelines, if you haven't already.

stefmolin commented 3 months ago

Hi there – this is controlled by your .pre-commit-config.yaml file. You can use the exclude option to provide a regular expression of directories to ignore:

- repo: https://github.com/stefmolin/exif-stripper
  rev: 0.3.1
  hooks:
    - id: strip-exif
      exclude: (dir1|dir2)/.*

Be sure to check out the pre-commit docs for other options.