Image deduplicate script and GTK app to compare.
Author: Alexander Chaika manti.by@gmail.com
Source link: https://github.com/manti-by/mgallery-py/
Rust mirror: https://github.com/manti-by/mgallery-rust/
Requirements:
Python 3.11, OpenCV, Redis, GTK
-
Set appropriate environment variables:
export REDIS_URL=redis://127.0.0.1:6379/5 export GALLERY_PATH=/home/ubuntu/app/data/ export DEBUG_LOG=/home/ubuntu/app/logs/debug.log export ERROR_LOG=/home/ubuntu/app/logs/error.log
-
Install necessary libraries
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
-
Setup environment and install packages from requirements file:
pip3 install -r requirements.txt
-
Scan gallery and compare duplicates
make setup make scan make compare