https://github.com/manti-by/mgallery
Image deduplicate script
https://github.com/manti-by/mgallery
imagehash pillow python rq sqlite
Last synced: 4 months ago
JSON representation
Image deduplicate script
- Host: GitHub
- URL: https://github.com/manti-by/mgallery
- Owner: manti-by
- License: bsd-3-clause
- Created: 2018-07-11T14:58:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-27T16:17:02.000Z (over 1 year ago)
- Last Synced: 2025-01-27T17:27:47.465Z (over 1 year ago)
- Topics: imagehash, pillow, python, rq, sqlite
- Language: Python
- Homepage:
- Size: 156 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Image deduplication app
====
About
----
Image deduplicate script and GTK app to compare.
[](https://www.python.org/downloads/release/python-3136/)
[](https://astral.sh/ruff)
[](https://raw.githubusercontent.com/manti-by/pdw/master/LICENSE)
Author: Alexander Chaika
Source link: https://github.com/manti-by/mgallery/
Rust mirror: https://github.com/manti-by/mgallery-rust/
Requirements:
Python 3.13, OpenCV, Redis, GTK
Script setup
----
1. Set appropriate environment variables:
```bash
export REDIS_URL=redis://127.0.0.1:6379/5
export GALLERY_PATH=/home/ubuntu/app/data/
export DEBUG_LOG=/tmp/mgallery/debug.log
export ERROR_LOG=/tmp/mgallery/error.log
```
2. Install necessary libraries
```bash
sudo apt install -y pkg-config python3-dev libraw-dev
sudo apt install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0 libgirepository1.0-dev gcc libcairo2-dev
```
3. Setup environment and install packages from requirements file:
```bash
pip3 install -r requirements.txt
```
4. Scan a gallery and compare duplicates
```bash
make setup
make scan
make compare
```