The "Immich Duplicate Finder" is an tool designed to seamlessly be integrated with the Immich API, targeting the efficient detection and management of duplicate images through hashing detection (and future incorporation of machine learning technologies). This project aims to enhance storage optimization and organization within the Immich ecosystem.
"Immich Duplicate Finder" is built as a Streamlit app in Python, making it easy to deploy and use with just a few steps. Follow these instructions to get up and running:
Begin by cloning this repository to your local machine. You can do this by running the following command in your terminal or command prompt:
git clone https://github.com/vale46n1/immich_duplicate_finder.git
Navigate to the cloned repository's directory and install the required dependencies using the provided requirements.txt
file:
cd immich_duplicate_finder
pip install -r requirements.txt
This command installs all necessary Python packages that "Immich Duplicate Finder" relies on.
With the dependencies installed, you can now launch the Streamlit app. Execute the following command:
streamlit run app.py
This will start the Streamlit server and automatically open your web browser to the app's page. Alternatively, Streamlit will provide a local URL you can visit to view the app.
If preferred, you can run Immich Duplicate Finder using the files in the docker/
subfolder of the repository. Download the docker-compose.yml
and Dockerfile
, and run docker compose up -d
. Immich Duplicate Finder will be accessible at localhost:8501
.
After launching the app, you'll need to complete a simple initial configuration to connect "Immich Duplicate Finder" with your Immich server:
Specify Immich Server Address: Upon first launching the app, in the sidebar, you'll be prompted to enter the address of your Immich server. This ensures that the "Immich Duplicate Finder" can communicate with your Immich installation.
Generate an API Key: Next, generate an API key within your Immich app. This is a critical step for authenticating and securing communication between the "Immich Duplicate Finder" and the Immich server.
Enter the API Key into the Program: Once you have your API key, enter it into the designated field in the "Immich Duplicate Finder" app. This links your specific Immich instance to the duplicate finder.
Data Persistence: To streamline your experience, the server address and API key are securely saved in a database. This means you won't need to re-enter this information every time you use the app, making future interactions quicker and more seamless.
This software is provided "as is", without any warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
This program is still under development and may contain bugs or defects that could lead to data loss or damage. Users are cautioned to use it at their own risk. The developers assume no responsibility for any damages, loss of information, or any other kind of loss resulting from the use of this program.
Enjoy exploring and managing duplicates in your Immich ecosystem with ease! If you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.