https://github.com/ibnaleem/multi-mat2
a python script that utilises mat2 on multiple files and moves them to a another folder
https://github.com/ibnaleem/multi-mat2
exif-data exif-metadata exif-remover exiftool mat2 metadata metadata-extraction metadata-extractor metadata-information metadata-management privacy-protection privacy-tools tails
Last synced: 10 months ago
JSON representation
a python script that utilises mat2 on multiple files and moves them to a another folder
- Host: GitHub
- URL: https://github.com/ibnaleem/multi-mat2
- Owner: ibnaleem
- Created: 2024-01-18T13:53:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-01T18:30:00.000Z (over 1 year ago)
- Last Synced: 2024-12-01T19:29:29.247Z (over 1 year ago)
- Topics: exif-data, exif-metadata, exif-remover, exiftool, mat2, metadata, metadata-extraction, metadata-extractor, metadata-information, metadata-management, privacy-protection, privacy-tools, tails
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: docs/README.MD
Awesome Lists containing this project
README
```
_____ ____ ___.____ ___________.___ _____ ________________________
/ \ | | \ | \__ ___/| | / \ / _ \__ ___/\_____ \
/ \ / \| | / | | | | | ______ / \ / \ / /_\ \| | / ____/
/ Y \ | /| |___| | | | /_____/ / Y \/ | \ | / \
\____|__ /______/ |_______ \____| |___| \____|__ /\____|__ /____| \_______ \
\/ \/ \/ \/ \/
```
[MAT2](https://github.com/tpet/mat2) is currently in **beta**, please don't use it for anything critical.
## Purpose
Multi-MAT2 automates MAT2, a CLI tool for Unix terminals, making metadata cleaning more efficient. Instead of manually typing filenames, Multi-MAT2 utilizes Python subprocesses to apply MAT2 to each file in a directory. It then moves only the cleaned files to a designated folder, leaving the originals untouched.
### Using only MAT2:
```
> mat2 filename1 filename2 filename3 filename4 ...
```
### Using Multi-MAT2:
```
> python3 main.py
```
Multi-MAT2 has automated the tidious task of typing every file you wish to clean.
## Usage
Make sure MAT2 and Python are installed on your system. Move all files you wish to clean inside a new directory. Make sub-directory within the new directory called `/cleaned`:
```
> mkdir images
> mv file1 images // move all files inside this directory
> cd images
> mkdir cleaned
```
Clone this repository and copy `main.py` into the directory (e.g images) but outside of `/cleaned`:
```
> cd images
> git clone https://github.com/ibnaleem/multi-mat2.git
> cd multi-mat2
> mv main.py /images
> cd ..
> rm -rf multi-mat2
```
Your new directory should contain all your files you wish to clean, a `main.py` file, and a `/cleaned` sub-directory. You can run the script in a terminal by providing a file extension argument:
```
python3 main.py
```
## Disclaimer
Even though MAT2 works on *most* file extensions, it does not cover all, therefore, Multi-MAT2 may not work for your file extension. [You can read MAT2's supported file extensions here.](https://0xacab.org/jvoisin/mat2#supported-formats)
## Acknowledgements
[0xacab.org](https://about.0xacab.org)
[tpet/mat2](https://github.com/tpet/mat2)
[jvoisin/mat2](https://0xacab.org/jvoisin/mat2)
## LICENSES
MultiMAT2 is under the [MIT License](https://github.com/ibnaleem/multi-mat2/blob/main/docs/LICENSE)
MAT2 is under the [GNU Lesser General Public License](https://0xacab.org/jvoisin/mat2/-/blob/master/LICENSE?ref_type=heads)