r/immich • • 5d ago Bravo

Request for comments - Immich native iOS exploration

Thumbnail
github.com
449 Upvotes

Hello all,

We are exploring directions to build a native iOS app for Immich from the core team, we had some prototypes and would love to hear the community feedback and suggestions.

Please find the GitHub discussion post here, we are looking forward to receive your thoughts and ideas!

Cheers!

Immich Team


r/immich • • Jul 02 '26 Bravo Heartwarming Popcorn

Immich v3.0.0 is out! 🎊

Thumbnail
github.com
1.5k Upvotes

r/immich • • 1d ago

Upgraded Immich to Postgres 19 and VectorChord 1.5.0, works great

Post image
168 Upvotes

Just a quick note for anyone wondering. I updated my Immich install to Postgres 19 and VectorChord 1.5.0, and everything is running smoothly.

Smart search, face recognition and the rest of the machine-learning features all work as before. I haven't seen any errors in the logs, and performance feels as good as ever, if not better.

If you're on the fence, I'd say go for it. Back up your database first, as always.

Happy to share details on my setup if anyone is interested.


r/immich • • 1d ago

(Satire) Meet Rustich: an all in one Immich client written in RUST for Linux, Android, Mac, iPhone, Android, and YOUR Smart Fridge, all running pure RUST

Post image
238 Upvotes

Hello Immich!

Like many of you all I love Immich — but after having used it extensively for weeks I found a critical issue. If you didn't know, the main Immich project is unfortunately not built it in RUST which is a much better language than typescript and python. Therefore, I took it upon me to build a much better project, all by myself.

And yes, before you ask I used claude for proofreading my code, however, it is still MY project

Reddit, meet:

============RUSTICH===========

Your Library ¡ All native ¡ 90% more efficient

It is basically the same as immich, but rebuilt 100% in pure, bare metal, RUST 🦀🦀🦀

What it does

  • Every function rebuilt from scratch, 100% verified
  • 1 Bazillion tests! Match that, core team!

Additionally, I added a bunch of much needed extra features to the project.

What they do:

  • Missed a shot? Dont worry use the new tool, Sloppo, to describe how the scene looked in real life and attach a reference photo (optional), and Sloppo will generate a moment and automatically place it in your timeline — It looks just like real life.

P.S.

I promise to maintain this project for years, even though there are 10 other projects that do the same thing on github, and even though I have zero history as a maintainer. I have even written it into my will that my savings shall go to a fund that funds Claude to maintain it in my stead.

TLDR;

Can we please do something about the sheer number of vibecoded projects that are being shared in this forum every single day. Maybe a weekly megathread? Maybe move them to discord?


r/immich • • 19h ago

Multi-location search, search → album, and no download button on Android

0 Upvotes

Hello I stumbled upon some issues when I was using Immich recently, I wanna know if I missed something and there is a solution to this or it is really lacking the functionality.

  1. Search: I'm trying to pull all photos of one person from several cities within a date range. The search UI only allows one city/country at a time, so I'm running the same search again and again and merging results by hand into an album. I've seen that Search API v2 (3.2) supports AND/OR on the server and the web UI migration is in progress. Is multi-select for locations part of that, and roughly when? Any workaround that would help me to create an album in immich with multiple conditions?
  2. Search → album: the search results page shows no actions. "Add to album" only appears after you hover a thumbnail and tick a hidden checkmark, and select all seems to cover only the loaded results. I ended up using a bookmarklet that adds every result of the current search to an album via the API in one click (happy to share). That should be a built-in "Add all results to album" button.
  3. Download on Android: on web, Download is one click. In the app there's no dedicated save button for most photos. It seems to only appear when the photo isn't already on the phone. My workaround is Share → Android share menu → Files by Google → Download, which is silly. Can we get an always-visible "Save to device" button in the viewer?

Is anyone else missing those or just me?

I love the project, these just hit hard this week.


r/immich • • 1d ago

Backups backups backups..... Where do we stand on backups?

9 Upvotes

Backups backups backups..... Where do we stand on backups?

Where does thehatefuleggplant stand on backups?

** Full disclosure this is going to be a bit of a tutorial on backups and what I use for my setup all provided in the hopes to help other newbie immich users **

 

For my backup strategy I do a few things. The core of which utilize rclone to connect to various cloud storage providers (pcloud and backblaze in addition to my seafile servers)

I use backrest to configure / schedule restic backup jobs to my different storage endpoints.

Lastly I use a synchronization script to sync some of my data in the raw to an external drive (in case I should die right after posting this my family will have an easy to access copy of all our photos) as well as my two seafile servers so I can keep some level of version history that doesnt require me going into my restic backups for restoration.

I did say this was going to be a bit of a how to guide but im not a huge fan or recreating what already exists. I will provide links on how to do most of this and in the order you need to do them to have a similar configuration such as myself.

First rclone.... Well here is the master list how to guide for rclone. Not much to it as you basically just follow prompts for configuring your rclone connection to your various storage endpoints

Once youve got rclone going then you either need to configure restic backups on your local system or do what I did and use backrest via docker.

Just in case you want to use restic in the raw here is the restic documentation.

Regardless of which path you chose in using restic the short and sweet is youll set up a repository which is basically the storage destination which in this case would be rclone and then you create a plan which is essentially what youre going to backup and to which repository as well as scheduling when the backups happen.

Thats pretty much it. Once youve done all of those things you should have a fairly safe backup strategy for your data but if youre like me and want a “what if I die tomorrow” backup plan for your non tech savvy family then I suggest you either set up a backup script that sync’s changes daily, weekly, monthly (what ever you want) or you can use the below script that I use which actively scans for changes in a directory and automatically syncs those changes to whatever storage medium you wish.

This script is also set up to do discord alerts whenever an error comes along so you can debug any issues as soon as they come up.

The script is a little limited in my configuration since seafile doesnt support hash checking so you may want to consider editing that portion of the script to do file hash checks if your storage medium can support it (highly recommended). Look for the “--- SYNC FUNCTION ---“ and youll see the various RCLONE_OPTS I have in place and thats where you can modify what sort of things rclone does.

At the top of the script youll see the “DISCORD_WEBHOOK” section. Thats where you need to put your discord bot link.

Just below that is your “SYNC_MAPPINGS” which should look like /source|Destination:backup for rclone  or /source|/destination if youre backing up to a local drive such as a USB drive.

You can add multiple lines to this location allowing you to monitor multiple locations and backup to multiple locations as needed.

Lastly you need to look for the “LOG_DIR” and change where you wish to keep your logs.

The way the logs work is it generates a new log based on day and rotates those logs every 60 days.

Save the script, make it executable, and run it once to confirm that it works and to also get your initial sync out of the way.

Lastly youll more than likely want to make a systemd config file so that the script will automatically run either globally or via user (I personally prefer user).

Go to /home/username/.config/systemd/user and make a text file with a name of your choosing (I went with rclone-sync.service) and paste the rclone-sync.service configuration I provided below.

You will need to edit the “ExecStart” portion to point to where your script file is located (which in my case I named rclone-sync.sh).

Save the file and then run systemctl --user daemon-reload

After you reload the systemd service youll run systemctl —user enable rclone-sync.service

Now that its enabled we need to start the service with systemctl —user start rclone-sync.service

Thats it.

You have accomplished...

  1. Setting up rclone
  2. Setting up restic backups
  3. Setting up a synchronization script
  4. Setting up a systemd service that automatically kicks off your synchronization script

rclone-sync.service

[Unit]
Description=Live Rclone Sync to Seafile and Local Backup
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/path/to/where/your/rclone/script/is/located/rclone-sync.sh
Restart=always
RestartSec=10
KillMode=control-group

[Install]
WantedBy=default.target

rclone-sync.sh script

#!/usr/bin/env bash

# --- CONFIGURATION ---
DISCORD_WEBHOOK="https:discordboturl"

# Format: "Local_Source|Remote_Dest"
SYNC_MAPPINGS=(
    # example rclone backup source|destination
    "/your/data/to/be/backedup|rclonestoragemedium:backuplocation"

    # example2 rclone backup source|destination
    "/more/data/to/be/backedup|rclonestoragemedium2:backuplocation"

    # example3 local backup source|destination
    "/more/data/to/be/backedup|/backup/destination"

)

LOG_DIR="/chose/where/you/want/your/logs/to/be/stored"
LOCK_FILE="/tmp/rclone-sync.lock"
SETTLE_SECONDS=30 # Wait 30s after local changes settle before syncing

mkdir -p "$LOG_DIR"

# --- HELPER: JSON ESCAPE ---
json_escape() {
    if command -v python3 >/dev/null 2>&1; then
        printf '%s' "$1" | python3 -c 'import json,sys; print(json.dumps(sys.stdin.read())[1:-1])'
    else
        printf '%s' "$1" | sed 's/\\/\\\\/g; s/"/\\"/g' | awk '{printf "%s\\n", $0}' | sed 's/\\n$//'
    fi
}

# --- HELPER: SEND DISCORD PAYLOAD ---
post_to_discord() {
    local PAYLOAD="$1"
    [[ -z "$DISCORD_WEBHOOK" || "$DISCORD_WEBHOOK" == *"YOUR_WEBHOOK_ID"* ]] && return

    local RESP_FILE
    RESP_FILE=$(mktemp)
    local HTTP_STATUS
    HTTP_STATUS=$(curl -s -o "$RESP_FILE" -w "%{http_code}" -H "Content-Type: application/json" -X POST -d "$PAYLOAD" "$DISCORD_WEBHOOK")

    if [[ "$HTTP_STATUS" != "204" && "$HTTP_STATUS" != "200" ]]; then
        echo "$(date): Discord webhook failed (HTTP $HTTP_STATUS): $(cat "$RESP_FILE")" >> "$LOG_DIR/sync-$(date +%Y-%m-%d).log"
    fi
    rm -f "$RESP_FILE"
}

# --- DISCORD NOTIFICATION FUNCTIONS ---
send_discord_error() {
    local SRC="$1"
    local DST="$2"
    local CODE="$3"
    local RUN_LOG="$4"

    local LAST_ERR
    LAST_ERR=$(grep -E "ERROR|Failed" "$RUN_LOG" | tail -n 1)
    [[ -z "$LAST_ERR" ]] && LAST_ERR="Check log file for details."
    LAST_ERR=$(json_escape "$LAST_ERR")

    local HOST
    HOST=$(hostname)

    local PAYLOAD
    PAYLOAD=$(cat <<EOF
{
  "username": "Rclone Sync Bot",
  "embeds": [{
    "title": "⚠️ Rclone Sync Failed on $HOST",
    "color": 15158332,
    "fields": [
      { "name": "Source", "value": "\`$SRC\`", "inline": false },
      { "name": "Destination", "value": "\`$DST\`", "inline": false },
      { "name": "Exit Code", "value": "\`$CODE\`", "inline": true },
      { "name": "Last Error", "value": "\`\`\`$LAST_ERR\`\`\`", "inline": false }
    ],
    "timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
  }]
}
EOF
)
    post_to_discord "$PAYLOAD"
}

send_discord_missing_marker() {
    local SRC="$1"
    local HOST
    HOST=$(hostname)

    local PAYLOAD
    PAYLOAD=$(cat <<EOF
{
  "username": "Rclone Sync Bot",
  "embeds": [{
    "title": "🛑 Sync Aborted: Missing .sync File on $HOST",
    "color": 15105570,
    "description": "The required \`.sync\` marker file was not found. Syncing is paused for this directory to prevent accidental data loss or unmounted drive syncs.",
    "fields": [
      { "name": "Skipped Source", "value": "\`$SRC\`", "inline": false }
    ],
    "timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
  }]
}
EOF
)
    post_to_discord "$PAYLOAD"
}

send_discord_success() {
    local SRC="$1"
    local DST="$2"
    local RUN_LOG="$3"

    # Match 1 or more spaces after INFO, plus Copied/Deleted/Moved/Updated
    local TRANSFERRED_ITEMS
    TRANSFERRED_ITEMS=$(grep -E "INFO[[:space:]]+: .*: (Copied|Deleted|Moved|Updated)" "$RUN_LOG" | sed -E 's/^.*INFO[[:space:]]+: (.*): (Copied|Deleted|Moved|Updated).*$/• [\2] \1/')

    # Do not spam Discord if rclone ran and found 0 changes to transfer
    [[ -z "$TRANSFERRED_ITEMS" ]] && return

    local TOTAL_COUNT
    TOTAL_COUNT=$(printf '%s\n' "$TRANSFERRED_ITEMS" | wc -l | tr -d ' ')
    local DISPLAY_LIST
    DISPLAY_LIST=$(printf '%s\n' "$TRANSFERRED_ITEMS" | head -n 15)

    if [ "$TOTAL_COUNT" -gt 15 ]; then
        local REMAINING=$((TOTAL_COUNT - 15))
        DISPLAY_LIST="${DISPLAY_LIST}"$'\n'"...and $REMAINING more file(s)."
    fi

    local SAFE_LIST
    SAFE_LIST=$(json_escape "$DISPLAY_LIST")

    local HOST
    HOST=$(hostname)

    local PAYLOAD
    PAYLOAD=$(cat <<EOF
{
  "username": "Rclone Sync Bot",
  "embeds": [{
    "title": "✅ Rclone Sync Completed on $HOST",
    "color": 3066993,
    "fields": [
      { "name": "Source", "value": "\`$SRC\`", "inline": false },
      { "name": "Destination", "value": "\`$DST\`", "inline": false },
      { "name": "Transferred Files ($TOTAL_COUNT)", "value": "\`\`\`$SAFE_LIST\`\`\`", "inline": false }
    ],
    "timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
  }]
}
EOF
)
    post_to_discord "$PAYLOAD"
}

# Extract unique local source directories for inotifywait
mapfile -t LOCAL_DIRS < <(
    for mapping in "${SYNC_MAPPINGS[@]}"; do
        echo "${mapping%%|*}"
    done | sort -u
)

# --- SYNC FUNCTION ---
run_sync() {
    local CHANGED_PATH="$1"

    (
        flock -n 200 || exit 0

        MAIN_LOG_FILE="$LOG_DIR/sync-$(date +%Y-%m-%d).log"
        find "$LOG_DIR" -name "sync-*.log" -type f -mtime +60 -delete

        # Keep track of directories we already alerted on during this run (prevents duplicate alerts)
        declare -A ALERTED_MISSING

        local BASE_RCLONE_OPTS=(
            --transfers=4
            --checkers=16
            --timeout=1m
            --contimeout=30s
            --retries=3
            --low-level-retries=10
            --exclude "*.tmp"
            --exclude "*.part"
            --exclude "*~"
            --exclude ".sync"
            --log-level=INFO
        )

        for mapping in "${SYNC_MAPPINGS[@]}"; do
            LOCAL_PATH="${mapping%%|*}"
            CLEAN_LOCAL="${LOCAL_PATH%/}"

            # If a specific file triggered the sync, skip sources that don't own that file
            if [[ -n "$CHANGED_PATH" && "$CHANGED_PATH" != "$CLEAN_LOCAL" && "$CHANGED_PATH" != "$CLEAN_LOCAL/"* ]]; then
                continue
            fi

            # --- CHECK FOR .sync MARKER FILE ---
            if [[ ! -f "$CLEAN_LOCAL/.sync" ]]; then
                echo "$(date): SKIPPED $CLEAN_LOCAL - Missing .sync marker file!" >> "$MAIN_LOG_FILE"
                
                # Send one Discord alert per missing source directory per sync cycle
                if [[ -z "${ALERTED_MISSING[$CLEAN_LOCAL]}" ]]; then
                    send_discord_missing_marker "$CLEAN_LOCAL"
                    ALERTED_MISSING["$CLEAN_LOCAL"]=1
                fi
                continue
            fi

            DEST_LIST="${mapping##*|}"
            IFS=',' read -ra DESTS <<< "$DEST_LIST"

            for REMOTE_PATH in "${DESTS[@]}"; do
                echo "$(date): Syncing $LOCAL_PATH -> $REMOTE_PATH" >> "$MAIN_LOG_FILE"

                # Use a temporary log file to isolate output for this specific transfer
                TEMP_RUN_LOG=$(mktemp)

                rclone sync "$LOCAL_PATH" "$REMOTE_PATH" "${BASE_RCLONE_OPTS[@]}" --log-file="$TEMP_RUN_LOG"
                EXIT_CODE=$?

                # Append the isolated run log into the main daily log, then clean up
                cat "$TEMP_RUN_LOG" >> "$MAIN_LOG_FILE"

                if [ $EXIT_CODE -ne 0 ]; then
                    echo "$(date): ERROR syncing $LOCAL_PATH -> $REMOTE_PATH (Exit code: $EXIT_CODE)" >> "$MAIN_LOG_FILE"
                    send_discord_error "$LOCAL_PATH" "$REMOTE_PATH" "$EXIT_CODE" "$TEMP_RUN_LOG"
                else
                    send_discord_success "$LOCAL_PATH" "$REMOTE_PATH" "$TEMP_RUN_LOG"
                fi

                rm -f "$TEMP_RUN_LOG"
            done
        done
    ) 200>"$LOCK_FILE"
}

# --- 1. INITIAL FULL SYNC ON STARTUP ---
run_sync

# --- 2. WATCH ALL LOCAL SOURCES FOR LIVE CHANGES ---
inotifywait -m -r -e modify,create,delete,move --format '%w%f' "${LOCAL_DIRS[@]}" | while read -r CHANGED_FILE
do
    MAIN_LOG_FILE="$LOG_DIR/sync-$(date +%Y-%m-%d).log"
    echo "$(date): Change detected ($CHANGED_FILE). Waiting to settle..." >> "$MAIN_LOG_FILE"

    # Debounce rapid file writes
    while read -r -t "$SETTLE_SECONDS" _; do
        :
    done

    # Only sync the source directory where the change occurred
    run_sync "$CHANGED_FILE"
done

If you have any questions or have any edit suggestions please let me know.

I dont do how to guides very often so im sure there are some flaws in what ive provided above.

**edit 1**

I forgot to mention you do need to install rclone and inotifywait as well as restic if you dont plan on using backrest.

**edit2**

A big thank you to u/IcarusOnl for your suggestion on file lock.

The script has been updated to look for a .sync file in the source directories and will ignore the source directory if the .sync file is not there.

I also added discord notifications not just for errors but on successful file changes be it copies or deletes.


r/immich • • 2d ago

Is editing still being worked on?

17 Upvotes

Hi all. Amazing application, my first feedback here.

I really want to stop using Google Photos on Android, but I can't because of the editing. I know Immich doesn't have scribbling yet, but even if i need to crop an image and then upload it directly to an app or a website, I can't do that with Immich alone.

Because Immich crops seem to only be recognized by Immich, or when you use the Share option within Immich. But that's not good enough, I want the edited image to be recognizable device-wide.

I read 2 or 3 threads on Github asking for a "Save as Copy" option when editing, but they didn't seem to go anywhere...

So is it still in the works?


r/immich • • 1d ago

Sanity check for remote backups

Post image
0 Upvotes

So I know y'all are way smarter than me, but I used Claude code to create a remote off-site backup of my immich library. it uses pizero2w and connects through tail scale to the NAS. then as a pull read only it does nightly backups and weekly checks with extf4. The convenience is that I just have to power them on, set up Wi-Fi and everything is scheduled.

I can't help but feel that I am missing something? Does anyone have suggestions on what to look for or double check? I've already ran a simulation of restoring immich myself using these drives. It just feels weird that my entire life's photo work is in the hands of these two little devices. My third backup will be a ssf on standby to takeover if my main NAS ever fails.


r/immich • • 1d ago

Syncing Google Photo album names to Immich

Post image
0 Upvotes

I have a Pixel phone and for some weird reason still use Google Photos as my primary gallery, with everything backing up to Immich. Alas, if I create an album in Google Photos, it does not create the same album in Immich. So whilst the photos are there, the album they belong to is not.

When I first migrated, I used Takeout and the importer, which was great, but it's not a feasible solution moving forwards for ad-hoc albums.

To solve the problem, I worked with Claude (soz) and made a docker that uses the Google Photos Picker API to select the photos in Google Photos album, find the matching photos in Immich and then create a matching album in Immich for the identified photos.

It was actually super quick, you type in the name you want to call the album in Immich (usually the same as in Google Photos), load up Google Photos, search your album, click "select all" and then "done". Then the identification process happens and you just click "Add". Done.

Of course the real solution is to just stop using Google Photos 🫠 but I wondered if anyone else would find this solution useful and, if so, figured I could share it.


r/immich • • 1d ago

Immich Suche findet nichts

0 Upvotes

I always keep Immich updated and have a Synology DS225+ with 18GB RAM, and I have the AI search activated there as well. According to the status, all photos are indexed and processed, but no matter what I search for, neither the iOS app nor the web interface finds anything. I search for „Car“ and it finds absolutely nothing in my thousands of photos. I’ve already run the corresponding server tasks a few times, but it doesn’t work.

Does anyone have an idea what could be the problem, why even a simple search at my place doesn’t find anything?


r/immich • • 1d ago

Export By Date

0 Upvotes

Hello guys, I hosted my immich and stored all photos and videos, and Decluttered them finally, I want to back up these to a cloud by date, Is there any feature or extension for this ?


r/immich • • 2d ago

Slow video playback

3 Upvotes

I'm hosting immich on system with a 10th gen i5, 24gb of ram, and a 4gb GPU on Fedora. It's been great and responsive but recently I've noticed an issue where videos are incredibly jerky and slow. They are videos I took on my phone.

Memory and CPU aren't limited for docker. I've monitored CPU/GPU/memory usage while playing the videos and they are barely making the system work.

I have all of the transcoding settings on default. I tried utilizing the GPU hardware and real time settings and it only got worse. After that I set it back to default.

The issue with jerky videos happens on my phone on the same network, over cell service, and even on the host computer. It doesn't matter. Any ideas where to start with troubleshooting this?


r/immich • • 2d ago

A tale of caution when using storage templates.

23 Upvotes

Im sure a bunch of folks are using storage templates but there could be a hidden nightmare.

In my case I take 321 backups to the nth degree so Im likely a bit of an edge use case but wanted to warn anyone who may run into the same issues that I have.

My backup strategy is a nightly restic backup to pcloud, backblaze, an external USB drive, and two seafile servers as well as a backup script being run from the user systemd services that looks for any changes in the upload folder of immich and sync's those changes to the USB drive and the two seafile servers.

The idea is to have multiple true backups with multiple carbon copies of the raw data. With the raw data in seafile I can very easily keep file changes documented since seafile has a nice web interface and keeps version history of the data should I need to restore a single deleted photo or video. The USB drive is just in case I die tomorrow my wife can simply take the USB drive, plug it into another computer and have easy access to all our photos.

My storage template should have looked something like this. {{y}}/{{filetypefull}}/{{filename}} resulting in the file directory structure UPLOAD_LOCATION/library/admin/2022/IMAGE/IMAGE_56437.jpg

However when I initially set up storage templates there was a space between the folder name and the file name so it actually looked like this. {{y}}/{{filetypefull}} /{{filename}} which ends up looking something like this UPLOAD_LOCATION/library/admin/2022/IMAGE /IMAGE_56437.jpg

In my original configuration there was a space being added between "image /filename" or "video /filename"

Under normal file and restic backup operations it didnt seem to make much difference. Restic backups didnt care about that extra space at all.

My rclone sync job ran into issues though.

The sync job to the USB drive went fine as ext4 doesnt seem to care about that space or ignores the extra space but the seafile servers took extra issue with that config as the sync job was adding an extra byte of data to the synchronized files and causing errors.

For most this maybe a non issue but I felt maybe there could be someone who have made the same mistake that I did.


r/immich • • 2d ago

Error loading image

Post image
6 Upvotes

My Immich doesn't show thumbnails for the latest photos.. what is the problem?.. when I click on the photo, it opens normally... Already trying refresh metadata and thumbail


r/immich • • 1d ago

Escaping Google Photos: How I Gutted and Rebuilt Immich Inside Out

Thumbnail
gallery
0 Upvotes

Series Intro (Hacking Immich): After testing several mainstream open-source photo managers, I settled on Immich—then used AI to rewrite everything from its deployment architecture to its core logic.

(Note: Huge respect to the Immich team. Upstream's defaults make complete sense for a multi-user, Docker-first product. This is purely a single-user Windows fork tailored to my own hardware and habits.)

TL;DR — What I actually changed across ~200K assets:

  • Half-Native Windows Setup: Kept Postgres/Redis/ML in Docker, pulled immich-server out to run natively on Windows. Directory scans dropped from 26s → 11s (for 2.3x more files), Vmmem RAM usage dropped from 97%, and 4K 60fps transcoding jumped 8x (0.4x → 3.2x via native HW codec).
  • Path Hashing + pHash Deduplication: Replaced slow content-stream hashing on scans with file-path hashing, and rebuilt the deduplication UI around perceptual hashing (pHash/dHash), flagging 32.4 GiB to reclaim.
  • Rewritten Upload Pipeline + In-Place Compression: Replaced serial mobile uploads with 20-item / 200 MB sequential batches to saturate LAN bandwidth without thrashing HDD heads, plus pre-upload JPEG 85 in-place compression (1/2–1/10 size).
  • Native Incremental Backup + 4K Video Compression: Built automatic incremental disk backup into Immich (skipping a separate NAS) and added an automated H.265 video compression pass that reclaimed 1.7 TiB.
  • No More "Never Touch Originals" + Quality-of-Life Fixes: Safe temp-file + integrity-checked write-back for rotations/GPS, instant permanent delete (skipping Trash), mirrorless SD card import workbench, Province → City Places tree, canonical EXIF camera/model names, and auto-archiving screenshots/social downloads.

1. Why I Left Google Photos

I didn't get into self-hosting photos for fun. I did it out of fear.

Once you get used to Google Photos, it's hard to go back: the timeline is buttery smooth, Memories hit the spot, and search finds whatever you ask for. Still, the more I stored there, the more uneasy I felt.

Privacy aside, there have been way too many stories of accounts getting banned out of nowhere—one automated risk flag, no real appeal process, and over a decade of photos and videos vanish overnight. Keeping your memories on someone else's servers is basically renting an apartment: no matter how nicely you decorate it, if the landlord changes the locks one day, you don't even get a chance to pack your bags.

Beyond ban anxiety, two dealbreakers drove me crazy:

  1. Syncing was painfully slow—practically at a crawl.
  2. Video compression was way too aggressive.

So I decided to bring everything home and self-host.

2. Testing Open-Source Alternatives: Why I Picked Immich

First, I spun up PhotoPrism. Written in Go, it's rock-solid under the hood with thorough RAW decoding and classification. Still, I gave up in under three days: the UI feels aggressively "engineer-brained." Filenames, shooting parameters, tags, and status icons are all crammed directly under every thumbnail. Scrolling through old photos in bed to unwind felt like auditing a spreadsheet after hours.

Next, I tried Lap, a newer local-first Rust + Tauri client. I closed it almost immediately—same visual rigidity, plus it's a pure local desktop app with no mobile app or server sync. A photo app is something you look at every day; if the first impression puts you off, features alone won't save it.

After making the rounds, I landed on Immich. Its UI benchmarks cleanly against Google Photos—uncluttered timeline, generous whitespace, and zero lag scrolling through tens of thousands of shots. It finally felt like bringing a cloud gallery home.

DimensionGoogle PhotosImmichPhotoPrismLap
ArchitectureCommercial cloudOpen-source C/SOpen-source Web-firstLocal desktop (Rust+Tauri)
UI / UXMinimalist benchmarkClean Google-styleDense, metadata-heavyUtility / file-manager feel
Mobile Sync5/5 (Seamless)5/5 (Native app)3/5 (PWA / 3rd-party)None
AI & SearchCloud LLMs (Top tier)CLIP + face recognitionClassic tag/EXIF filtersOn-device local AI
FoldersForced uploadExternal librariesRead-only mountDirect local read
RAW / LiveBasicGreat (stacking + 360°)Great (RAW color)Great (RAW+JPG/XMP/Live)
VerdictEasy, but ban/privacy riskBest UI + modding baseSolid, visually tiringGreat local tool, no sync

3. Overturning Immich's Core Design Principles With AI

Once I dumped all my daily phone shots, camera RAWs, and videos into Immich as my primary gallery, the rough edges showed up fast. Years ago, if an open-source app didn't fit your workflow, you filed a GitHub issue and waited. Now with AI coding alongside me, I cloned the repo and reshaped it around my hardware and habits—overturning almost every core assumption of upstream Immich while keeping its clean UI shell.

1. Going Half-Native, Half-Docker to Cut I/O Overhead

Docker-all-the-things is convenient, until you run it on Windows (WSL2 9P) over a 200K-file library. Filesystem and block I/O overhead became painfully obvious when reading/writing large images and videos, and got even worse once I added compression and backups.

So I left PostgreSQL, Redis, Machine Learning, and Map Tiles inside Docker for clean dependency management, and pulled immich-server out to run natively on the Windows host.

BenchmarkFull Docker (WSL2 9P)Half-Native (Windows Host)Difference
Directory Traversal26s for 86K files (cold cache 100K+ hits 5–15m)11s for full 198K disk filesOrder-of-magnitude speedup
Asset Stat Check18s for 86K assets over 9P6s for 201K assets (11s incl. walk)Zero cross-VM round trips
Same-Disk Move / MetadataEXDEV re-copy; 4–8 GB r/W for a 2 GB videoAtomic rename (< 1 ms), fast local writeZero duplicate copies
Cross-Disk Backup (E: → F:)Double 9P round-trip; frequent timeoutsDirect copy at 82–172 ms / photo5–15x faster, 0 timeouts
Delete Large Files>512 MB crawls over 9P; forced .trashNative DeleteFileW: few ms for 10 GBInstant space reclaim
Memory (Vmmem)I/O cache spikes to 33.8–37.7 GB (97% RAM)Heavy I/O moved out; host free RAM rebounds to 31.2 GBStops starving host RAM
4K 60fps TranscodeSlow Windows HW / no macOS VideoToolbox (0.4x SW)Native HW codec at 3.2x (CPU < 15%)8x faster, cool & quiet

2. Dropping Content Stream Hashing for Path Hashing & Rebuilding Deduplication

Upstream Immich reads the entire byte stream of every new file to compute a content hash, and re-hashes aggressively during scans. On large 4K videos and massive libraries, that thrashes disk I/O. Since I manage my own folders, I replaced content-stream hashing with file-path hashing (dropping scan verification to milliseconds) and rebuilt duplicate detection using perceptual hashing (pHash / dHash)—fast, accurate, and resilient to EXIF edits or resolution compression—along with a completely rewritten deduplication UI.

3. Throwing Out the Upload Pipeline and Starting From Scratch

Stock mobile upload was agonizingly slow—taking seconds per photo over local Wi-Fi when I could just blast files via LocalSend and scan them. Why? Because mobile backup defaults to serial single-file uploads (waiting on server handshake/verification/preprocessing for every single asset). Cranking up concurrency doesn't help on HDDs either: multithreaded random writes send drive heads thrashing wildly.

So I gutted the upload flow:

  • The server now writes directly into my External Library (not Immich's closed internal folder structure).
  • The mobile app uploads in 20-item / 200 MB batches, firing the next batch immediately while decoupling synchronous blocking—turning chaotic random writes into smooth sequential HDD writes that saturate LAN bandwidth.
  • Pre-upload in-place image compression: Wrapped mature compression code from my Android work into a Flutter plugin that re-encodes photos in-place at JPEG quality 85 (1/2–1/10 file size, same resolution, virtually zero visible quality loss) before uploading—saving phone space, upload time, and server disk simultaneously.

4. Adding Native Incremental Backup—And Skipping a Dedicated NAS

I wired automated incremental disk backup directly into Immich. Once it worked, I realized I don't even need a dedicated NAS box anymore.

Most home NAS setups store movies, e-books, and family photos/videos. Movies and books can always be re-downloaded; the only truly irreplaceable data is what you shot yourself. Historically people bought a NAS because gallery software didn't handle disaster-recovery backups. With this half-native Windows Immich handling management and incremental backups in one loop, having one less box and OS to maintain is actually a huge relief.

5. Automated Video Compression: 1.7 TiB Reclaimed Across 200K Assets

Checking disk usage revealed the real storage hog wasn't photos—it was straight-out-of-camera 4K video from mirrorless cameras, gimbals, and drones. A few minutes of high-bitrate footage eats gigabytes, even though I mostly rewatch clips on phones or monitors.

Test encodes showed I could shrink videos to 2/3 or even 1/10 of their original size with no resolution drop and practically zero visible difference. I built an automated H.265 compression pipeline (triggered post-upload, post-scan, or manually) that silently swaps in the compressed file. One pass across my ~200K-asset library reclaimed 1.7 TiB.

6. Plugging In My Mirrorless Camera Import Workflow

I shoot JPG + RAW on my mirrorless camera. Previously, importing meant running a custom Java script to rename/sort by date, batch-exporting JPGs from DxO PhotoLab, and manually scanning Immich—enough friction that photos sat on SD cards for months.

Now I added an SD card import workbench straight into Immich: one click copies to high-speed SSD staging, auto-renames, sends finished JPGs to the External Library, and archives RAWs to cold storage. After I hit batch export in PhotoLab, ingestion, compression, and backup run automatically.

7. Breaking the "Never Modify Original Files" Dogma + Instant Permanent Delete

This is the biggest philosophical break. Upstream Immich never touches original files—rotations and GPS fixes only go into .xmp sidecars or the DB. That makes no sense to me: if the original JPEG is sideways or missing GPS, opening it in File Explorer or another viewer leaves it just as broken. To prevent corruption, my write-back flow modifies a temp file, validates image decoding + EXIF integrity, and only then atomically replaces the original.

I also killed the mandatory Trash step. When culling bad shots, I don't want them lingering for 7–30 days—I added a "Delete Permanently Now" action that wipes them from disk immediately on confirmation.

8. Fixing My Biggest Pet Peeves: Location Tree, EXIF Device Names & Timeline Cleanup

  • Two-Level Location Tree: Upstream Places dumps cities/districts into a flat, unsorted list. I rebuilt it into a Province → City tree sorted by item count.
  • Canonical Camera & Model Names: Upstream displays raw EXIF strings verbatim (inconsistent brand spellings and cryptic phone model codes). I added a normalization layer merging 49 raw EXIF variants into 37 canonical brands and mapping internal codes to readable consumer model names.
  • Timeline Auto-Cleanup: Built an auto-archive ruleset matching filename patterns (Screenshot_) and source folders (like Xiaohongshu/RedNote, Zhihu, Douyin, etc.) so saved guides, memes, and screenshots stay out of my main camera timeline.

4. What's Next?

What started as fear of losing a Google account ended with me using AI to reshape Immich around my exact hardware and workflow. There's no one-size-fits-all architecture—when a self-hosted tool bends cleanly to how you actually live and shoot, that's when it clicks 🐶.

This post is the high-level overview. I'm planning standalone deep dives with implementation details and pitfalls for:

  1. The half-native Windows architecture (immich-server outside WSL2)
  2. Sequential batch uploads + Flutter JPEG 85 in-place compression
  3. Path hashing + pHash/dHash deduplication
  4. Mirrorless camera SD card workflow
  5. Safe temp-file-verified write-back to originals

Which part are you most curious to see first? Happy to answer questions or share specifics in the comments.


r/immich • • 2d ago

Help - Immich combined the photos from my account and my wife's account

3 Upvotes

Is there anything I can do to separate them at this point?

I do not have "Partner Sharing" configured, and we are the only accounts.


r/immich • • 2d ago

New photos from phone camera don't appear in camera roll

2 Upvotes

I'm sure this question has a very simple answer but I cannot seem to figure it out. I just got a new phone and with the way immich was set up on my old phone, if I took a photo with the phone's camera, it would shortly appear in immich's camera roll, whether it was uploaded to immich or not. O my my new phone, I don't see newly taken photos show up in my camera roll and I instead have to find them in Library > On this device > Camera.

If anyone could help it would be greatly appreciated, thanks.


r/immich • • 3d ago

I built an open-source, self-hosted engine & Home Assistant integration to turn my E-Ink picture frame (Fraimic / Spectra 6) into a context-aware display for Immich, movies, and music

Thumbnail gallery
15 Upvotes

r/immich • • 3d ago

Backup Ideas

1 Upvotes

I have had an immich server running for a few months now. I currently run it on a raspberry pi 4b with 8gb of ram while using Tailscale for external connections at my home. I just recently got a second raspberry pi that I have set up at my apartment in a different location and want to start using it as a backup.

I really don't have any idea how to go about this and have been trying to research the best method. I would love to hear what methods some of you have used so that I can do this in a way that would be robust, easy to recover, and safe. I currently have two 500gb drives (one for each pi). This makes it a little difficult to take more than one copy of the photos at a time as a version snapshot. This worries me because if I set up an automated script to backup all my photos, and my first drive becomes corrupted, I don't want the backup to send the corrupted files to my second drive and also mess up my backup.


r/immich • • 3d ago

Album view in web - what's shared with me?

0 Upvotes

I share my photos and albums with my partner, both through partner sharing and by manually sharing albums. In the iOS app, when you click on "Albums" you can select "Shared with me", and that will show the albums my partner has shared with me. However, the web version of Immich has 3 different view options "All", "Owned", "Shared". If I click "Shared" it shows the albums I've shared as well as those shared with me.

Is there a way to duplicate the iOS view of only seeing albums "Shared with me" on the web?


r/immich • • 3d ago

update guide 4 containers (docker)

6 Upvotes

hey yall

im running immich in docker with Arcane as docker manager and very confused about updating:

1- updating immcih server & machine learning

is straight forward just change the image 3.41 -->3.42 i.e (ghcr.io/immich-app/immich-server:v3.4.1)--> (ghcr.io/immich-app/immich-server:v3.4.2) after (reading logs and breaking changes)

2- what about "postgres"?

i understand immich do their own postgres packages in this link https://github.com/immich-app/base-images/pkgs/container/postgres

and even the docker builder by immich uses a full image tag with digest for example image: ghcr.io/immich-app/postgres:18-vectorchord1.1.1@sha256:cad0d3a7dc0d5321f42feeb3a0a1d6ec80551cd9be52a7ffb640494d74cb3926

OK cool but in that github i cant find any change-log or notes for these packages? how often should i update? when should i migrate and which postgres does immich support? also any breaking changes?

atm im running PostgreSQL 18!

more confusing i see some packages with the tag UPGRADE when should i use such tag only if upgrading to from earlier postgresSQL i.e 14-17?

3- what about "redis"?

unlike postgres this is not packaged or maintained by immich?

how often to upgrade? which versions immich support? also why immich builder suggest to use digest with postgres and redis is there a benifit?

docker.io/valkey/valkey:9@sha256:3add1a336a920ea54770a001ab6feb3da5fceea96a40373a3a2cd469b815f0b7

honestly i couldnt find straight answers and updating immich seems like a task? id appreciate some clarification!

thx


r/immich • • 3d ago

(AI) HomeCard – self-hosted holiday card maker for the whole household: pulls photos from Immich, exports print-ready files (300 DPI, bleed, CMYK)

0 Upvotes

Like most families, we partake in our annual holiday cards. I've been incredibly disappointed in in the options, the prices, and the overall process since everything is synced with immich. I worked heavily with AI to create a product which works wonderfully to fill those gaps. These files can be uploaded to a provider of your choice or printed at home. I wanted to make the process as simple as possible for myself and my family and has been working well for that. It's very rough and likely has unseen bugs but if I can save you some money I think this is worth sharing.

This is an card studio that runs in one Docker container on your own server.

Standard AI description below with github at the bottom

What it does

- Pick photos from Immich (read-only, each person links their own key), a photo folder, or your phone

- Choose from 28 occasions (Christmas, Hanukkah, Diwali, Lunar New Year, birthdays, weddings…). It sets up the layout, a face-aware crop, colours and the greeting

- A guided 4-step mode, or a free-form studio editor

- Print Guardian checks photo resolution, safe zones, cut-off faces and text contrast before you export, with one-click fixes

- Exports PDF (vector text, bleed, optional CMYK), PNG and JPEG at true 300 DPI, with presets for Mpix, Shutterfly, Costco/Walgreens, Vistaprint and others

- Optional stock backgrounds (Pixabay, Unsplash, public-domain Openverse), or offline vector patterns

Multiple users

- Everyone in the household gets their own account. Cards, uploads, exports and Immich libraries are private to each person

- Fonts, style packs and a shared photo folder are available to everyone

- "Share copy with another user" hands someone their own editable copy of a card, without giving them access to your photos

Privacy and security

- No telemetry, no cloud account, invite-only sign-in

- Exported files are stripped of EXIF/GPS data

- Hardened container: read-only file system, drops root

Install: Docker Compose, or a one-command script for Unraid.

Feedback and bug reports are very welcome.

Disclosure (again) : I built this with a lot of help from an AI coding assistant (Claude). It's tested and running on my own Unraid server, and the security model is documented in the repo.

GitHub: https://github.com/AftermathLK/HomeCard


r/immich • • 3d ago

A preflight check for renaming folders in Immich external libraries

0 Upvotes

An Immich discussion about case-only folder renames prompted a small CI test on v3.4.2. The test renamed pics 2015 to Pics 2015 and rescanned. Immich imported the same file under a new asset ID, and the new entry didn’t show up in the original album. Test run

I put together a small Python tool to preview a rename or compare two file inventories. It uses paths and file hashes to flag moves and ambiguous matches. If you supply a local JSON file with existing album assignments, the report can also show which albums to check. It runs locally and leaves your photos and the Immich database alone. GitHub repo and examples

If you’ve reorganized an external library on a NAS, what would you want this report to flag before you rescan?


r/immich • • 4d ago

Testing my Immich disaster recovery process using AWS S3 and EC2

8 Upvotes

I’m an avid self-hoster, but my hi-res photo backups are synced to AWS S3 every night. It’s not a self-hosted backup but I need to put the important stuff somewhere else for safe keeping. I store them in the S3 Standard-IA (Infrequent Access) tier. For about 250GB of photos it’s roughly $6.50 USD a month to host these in the Sydney region. I could reduce that to $2/month by using S3 Glacier Instant Retrieval, but the DR test process would bring those assets back to an S3 standard tier anyway.

What I had Claude (shamelessly) build was a CDK app and scripting to create a VPC, EC2 instance, S3 Gateway, and copy all my assets over, install Immich, mount my files, and give me access to check.

All in all, the test takes about 10 minutes end to end excluding thumbnail generation.

The test works by detecting the version number from the database backup file name and spools up an Immich instance with that version. To reduce the test time (and limit cost) I use an m9gd.4xlarge. The reason for this is two fold. It is a Graviton 5 instance (ARM) and it has a direct attached NVME SSD. Both of these give serious performance gains. The NVME unblocks you from an EBS throughput bottleneck, and in my benchmarking I found Graviton around 1.3-1.5x faster for thumbnail generation than the equivalent x86 processor.

This gets me to a point where my backups are tested thoroughly, the photos are validated as backed up, thumbnail generation can be tested. By the end of it I know I have a working backup and disaster recovery. It might cost a few dollars to do this test, but that’s fine for a once a month fire drill.

I haven’t published the code anywhere, but did wonder if people are testing their backups.